Shouldn't use HEAD for constructors
This commit is contained in:
@@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
|
|
||||||
@Mixin(TitleScreen.class)
|
@Mixin(TitleScreen.class)
|
||||||
public class ExampleMixin {
|
public class ExampleMixin {
|
||||||
@Inject(at = @At("HEAD"), method = "init()V")
|
@Inject(at = @At("RETURN"), method = "init()V")
|
||||||
private void init(CallbackInfo info) {
|
private void init(CallbackInfo info) {
|
||||||
System.out.println("This line is printed by an example mod mixin!");
|
System.out.println("This line is printed by an example mod mixin!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user