Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is it incompatible? #3506

Open
kianfakheriaghdam opened this issue Dec 31, 2023 · 0 comments
Open

Why is it incompatible? #3506

kianfakheriaghdam opened this issue Dec 31, 2023 · 0 comments
Labels
Bug The issue is a fault in the expected behavior of the application

Comments

@kianfakheriaghdam
Copy link

Describe the bug
My mod was incompatible with Impact; So I made a test mod that only injects a println to Minecraft.init HEAD. It crashes with just that as well!

To Reproduce
Steps to reproduce the behavior:

  1. Add the mod.
  2. Launch the game.
  3. Game crashes.

Expected behavior
It shouldn't crash!

Game output
[12:53:36] [main/ERROR] [mixin]: Critical injection failure: LVT in net/minecraft/entity/Entity::func_70091_d(Lnet/minecraft/entity/MoverType;DDD)V has incompatible changes at opcode 745 in callback mixins.impact.json:MixinEntity->@Inject::move(Lnet/minecraft/entity/MoverType;DDDLorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;DDDDDDLjava/util/List;Lnet/minecraft/util/math/AxisAlignedBB;Z)V.
 Expected: [D, D, D, D, D, D, Ljava/util/List;, Lnet/minecraft/util/math/AxisAlignedBB;, Z]
    Found: [D, I, D, D, D, D, D, D, D]
Available: [D, I, D, D, D, D, D, D, D, Ljava/util/List;, Lnet/minecraft/util/math/AxisAlignedBB;, Z, I]
Additional Client Info
  • Impact Version: 4.9.1 for 1.12.2
  • Using Optifine? Yes
  • Enabled mods: Doesn't matter
  • Operating System: Windows 11 64bit
  • Java Version: Java 8
Mod Code
@Mixin(Minecraft.class)
public abstract class MixinMinecraft {
    @Inject(method = "init", at = @At("HEAD"))
    private void init() {
        System.out.println("Hello, world!");
    }
}
{
  "package": "com.author.mod.mixins",
  "refmap": "mixins.mod.refmap.json",
  "compatibilityLevel": "JAVA_8",
  "client": [
    "MixinMinecraft"
  ]
}
@kianfakheriaghdam kianfakheriaghdam added the Bug The issue is a fault in the expected behavior of the application label Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The issue is a fault in the expected behavior of the application
Projects
None yet
Development

No branches or pull requests

1 participant