don't search for portal creation when looking down
This commit is contained in:
parent
66d3e62281
commit
428db483a7
1 changed files with 23 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue