Archiviert
13
0

don't search for portal creation when looking down

Dieser Commit ist enthalten in:
lukas81298 2021-01-05 15:14:35 +01:00 committet von MiniDigger | Martin
Ursprung 66d3e62281
Commit 428db483a7

Datei anzeigen

@ -0,0 +1,23 @@
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();
}
}