forgot about invulnerable
This commit is contained in:
1 parent
a83088e685
commit
d13ae34b1e
1 file changed
+1
-1
@@ -20,7 +20,7 @@ public abstract class PlayerEntityMixin {
|
|||||||
cancellable = true
|
cancellable = true
|
||||||
)
|
)
|
||||||
public void onMaxNetherPortalTime(CallbackInfoReturnable<Integer> cir) {
|
public void onMaxNetherPortalTime(CallbackInfoReturnable<Integer> cir) {
|
||||||
if(CarpetSettings.portalCreativeDelay != 1) cir.setReturnValue(CarpetSettings.portalCreativeDelay);
|
if(CarpetSettings.portalCreativeDelay != 1 && this.abilities.invulnerable) cir.setReturnValue(CarpetSettings.portalCreativeDelay);
|
||||||
else if(CarpetSettings.portalSurvivalDelay != 80) cir.setReturnValue(CarpetSettings.portalSurvivalDelay);
|
else if(CarpetSettings.portalSurvivalDelay != 80) cir.setReturnValue(CarpetSettings.portalSurvivalDelay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user