Add portal permission bypass

This commit is contained in:
William Blake Galbreath
2025-01-11 22:19:05 -08:00
committed by granny
parent 407adcda52
commit d760f5436f
5 changed files with 23 additions and 44 deletions

View File

@@ -9,3 +9,12 @@
while (level.getBlockState(pos).is(this)) {
pos = pos.below();
}
@@ -129,7 +_,7 @@
@Override
public int getPortalTransitionTime(ServerLevel level, Entity entity) {
return entity instanceof Player player
- ? Math.max(
+ ? player.canPortalInstant ? 1 : Math.max( // Purpur - Add portal permission bypass
0,
level.getGameRules()
.getInt(