Shouldn't use HEAD for constructors
This commit is contained in:
parent
cfc58a6087
commit
6d8b630d66
@ -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!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user