Paper/Spigot-Server-Patches/0645-don-t-search-for-portal-creation-when-looking-down.patch

24 Zeilen
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: lukas81298 <lukas81298@gmail.com>
Date: Tue, 5 Jan 2021 14:53:42 +0100
Subject: [PATCH] don't search for portal creation when looking down
diff --git a/src/main/java/net/minecraft/server/BlockFireAbstract.java b/src/main/java/net/minecraft/server/BlockFireAbstract.java
index 172e4b3eeecc3808a335b80bb44bc6be3d8dd33d..5727b6f8d94040868ba752ea186b8e8995e189b6 100644
--- a/src/main/java/net/minecraft/server/BlockFireAbstract.java
+++ b/src/main/java/net/minecraft/server/BlockFireAbstract.java
@@ -109,7 +109,11 @@ public abstract class BlockFireAbstract extends Block {
break;
}
}
-
+ // Paper start - don't search for portal creation when looking down
+ if(enumdirection == EnumDirection.DOWN || enumdirection == EnumDirection.UP) {
+ return false;
+ }
+ // Paper end
return flag && BlockPortalShape.a((GeneratorAccess) world, blockposition, enumdirection.h().n()).isPresent();
}
}