diff --git a/src/main/java/systems/brn/justteleportalready/mixin/JustTeleportAlreadyMixin.java b/src/main/java/systems/brn/justteleportalready/mixin/JustTeleportAlreadyMixin.java index 4d582b4..fb43bd9 100644 --- a/src/main/java/systems/brn/justteleportalready/mixin/JustTeleportAlreadyMixin.java +++ b/src/main/java/systems/brn/justteleportalready/mixin/JustTeleportAlreadyMixin.java @@ -21,7 +21,8 @@ public class JustTeleportAlreadyMixin { cir.setReturnValue(world.getGameRules().getInt(Entity_Portal_Cooldown)); } - @Shadow protected int portalCooldown; + @Shadow + private int portalCooldown; @Inject(method = "tickPortalCooldown", at = @At(value = "RETURN")) private void tickPortalCooldown(CallbackInfo ci) { int maxCooldown = world.getGameRules().getInt(Entity_Portal_Cooldown); diff --git a/src/main/resources/justteleportalready.mixins.json b/src/main/resources/justteleportalready.mixins.json index dd99ebe..64816b3 100644 --- a/src/main/resources/justteleportalready.mixins.json +++ b/src/main/resources/justteleportalready.mixins.json @@ -4,7 +4,8 @@ "package": "systems.brn.justteleportalready.mixin", "compatibilityLevel": "JAVA_21", "mixins": [ - "DontHurtMePearlMixin" + "DontHurtMePearlMixin", + "JustTeleportAlreadyMixin" ], "injectors": { "defaultRequire": 1