From 7029c0a8f3e2a233c889ef3c558aa0f75c29bc5a Mon Sep 17 00:00:00 2001 From: Parker Hawke Date: Fri, 8 Jan 2021 21:45:39 -0500 Subject: [PATCH] SPIGOT-6311: Don't calculate portal shapes for up/down directions --- nms-patches/BlockFireAbstract.patch | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nms-patches/BlockFireAbstract.patch b/nms-patches/BlockFireAbstract.patch index 1bbccb5b9..a84cd77f9 100644 --- a/nms-patches/BlockFireAbstract.patch +++ b/nms-patches/BlockFireAbstract.patch @@ -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(); } }