mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-6311: Don't calculate portal shapes for up/down directions
This commit is contained in:
parent
ff2b9440f5
commit
7029c0a8f3
1 changed files with 14 additions and 1 deletions
|
@ -33,7 +33,20 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -103,4 +110,12 @@
|
||||
@@ -83,6 +90,12 @@
|
||||
}
|
||||
|
||||
private static boolean b(World world, BlockPosition blockposition, EnumDirection enumdirection) {
|
||||
+ // CraftBukkit start - SPIGOT-6311: Do not calculate portals for up/down directions
|
||||
+ if (enumdirection == EnumDirection.UP || enumdirection == EnumDirection.DOWN) {
|
||||
+ return false;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
if (!a(world)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -103,4 +116,12 @@
|
||||
return flag && BlockPortalShape.a((GeneratorAccess) world, blockposition, enumdirection.h().n()).isPresent();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue