Add test for #132

This commit is contained in:
Juuz
2023-06-12 18:41:48 +03:00
parent 4ce760a062
commit e485c5e68c

View File

@@ -3,6 +3,7 @@ package net.fabricmc.example.mixin;
import net.minecraft.client.gui.screen.TitleScreen;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Desc;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@@ -12,4 +13,9 @@ public class ExampleMixin {
private void init(CallbackInfo info) {
System.out.println("This line is printed by an example mod mixin!");
}
@Inject(at = @At("HEAD"), target = @Desc("init"))
private void init2(CallbackInfo info) {
System.out.println("This line is printed by an example mod mixin!");
}
}