Changing mixin name
This commit is contained in:
1 parent
3a3da835a8
commit
b5e0a91a26
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
@Mixin(MinecraftServer.class)
|
@Mixin(MinecraftServer.class)
|
||||||
public class ExampleMixin {
|
public class ParrotMixin {
|
||||||
@Inject(at = @At("HEAD"), method = "loadLevel")
|
@Inject(at = @At("HEAD"), method = "loadLevel")
|
||||||
private void init(CallbackInfo info) {
|
private void init(CallbackInfo info) {
|
||||||
// This code is injected into the start of MinecraftServer.loadLevel()V
|
// This code is injected into the start of MinecraftServer.loadLevel()V
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"package": "net.almtesh.stickyparrots.mixin",
|
"package": "net.almtesh.stickyparrots.mixin",
|
||||||
"compatibilityLevel": "JAVA_25",
|
"compatibilityLevel": "JAVA_25",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"ExampleMixin"
|
"ParrotMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|||||||
Reference in new issue
Block a user