This commit is contained in:
Bruno Rybársky 2024-05-23 19:30:03 +02:00
parent 20da0f14d1
commit 11553d1ea6
2 changed files with 4 additions and 2 deletions

@ -21,7 +21,8 @@ public class JustTeleportAlreadyMixin {
cir.setReturnValue(world.getGameRules().getInt(Entity_Portal_Cooldown)); cir.setReturnValue(world.getGameRules().getInt(Entity_Portal_Cooldown));
} }
@Shadow protected int portalCooldown; @Shadow
private int portalCooldown;
@Inject(method = "tickPortalCooldown", at = @At(value = "RETURN")) @Inject(method = "tickPortalCooldown", at = @At(value = "RETURN"))
private void tickPortalCooldown(CallbackInfo ci) { private void tickPortalCooldown(CallbackInfo ci) {
int maxCooldown = world.getGameRules().getInt(Entity_Portal_Cooldown); int maxCooldown = world.getGameRules().getInt(Entity_Portal_Cooldown);

@ -4,7 +4,8 @@
"package": "systems.brn.justteleportalready.mixin", "package": "systems.brn.justteleportalready.mixin",
"compatibilityLevel": "JAVA_21", "compatibilityLevel": "JAVA_21",
"mixins": [ "mixins": [
"DontHurtMePearlMixin" "DontHurtMePearlMixin",
"JustTeleportAlreadyMixin"
], ],
"injectors": { "injectors": {
"defaultRequire": 1 "defaultRequire": 1