mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 21:44:40 +01:00
97b2eadf17
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing CraftBukkit Changes: 7029c0a8f SPIGOT-6311: Don't calculate portal shapes for up/down directions
23 lines
1.1 KiB
Diff
23 lines
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 9c42b5df5839ed1759391270bcc6f240388ddd04..392d27916b929881ff05f94325184acc6f0d7b7a 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockFireAbstract.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockFireAbstract.java
|
|
@@ -115,7 +115,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();
|
|
}
|
|
}
|