mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Add portal permission bypass
This commit is contained in:
committed by
granny
parent
407adcda52
commit
d760f5436f
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user