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));
}
@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);

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