Fix
This commit is contained in:
parent
20da0f14d1
commit
11553d1ea6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user