Skip to content

Commit

Permalink
Fix mixin crash in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jul 18, 2022
1 parent 01f03ed commit 4108bdc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
------------------------------------------------------
Version 0.8.1
------------------------------------------------------
**Fixes**
- Fixed mixin crash at launch

------------------------------------------------------
Version 0.8.0
------------------------------------------------------
Updated to 1.19

------------------------------------------------------
Version 0.7.0
------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
org.gradle.jvmargs = -Xmx5G

mod_name = Automatone
mod_version = 0.8.0
mod_version = 0.8.1
maven_group = io.github.ladysnake

minecraft_version=1.19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class EntityMixin {
@Shadow @Mutable @Final private EntityType<?> type;

@Dynamic("hasPlayerRider player check lambda")
@Inject(method = "m_lsaraprt", at = @At(value = "HEAD"), cancellable = true)
@Inject(method = { "m_lsaraprt", "method_31469" }, at = @At(value = "HEAD"), cancellable = true, require = 1, allow = 1)
private static void removeFakePlayers(Entity entity, CallbackInfoReturnable<Boolean> cir) {
if (entity instanceof AutomatoneFakePlayer) {
cir.setReturnValue(false);
Expand Down
2 changes: 1 addition & 1 deletion src/launch/resources/mixins.automatone.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "baritone.launch.mixins",
"compatibilityLevel": "JAVA_8",
"compatibilityLevel": "JAVA_17",
"verbose": false,
"injectors": {
"maxShiftBy": 2,
Expand Down

0 comments on commit 4108bdc

Please sign in to comment.