papermc/Spigot-Server-Patches/0037-Stop-updating-flowing-block-if-material-has-changed.patch

22 lines
945 B
Diff
Raw Normal View History

2016-03-25 04:59:37 +00:00
From 51d80ce6ec7ea8db6e9197d43e1d8d793aea50f0 Mon Sep 17 00:00:00 2001
From: Iceee <andrew@opticgaming.tv>
2016-02-29 23:09:49 +00:00
Date: Wed, 2 Mar 2016 12:03:23 -0600
Subject: [PATCH] Stop updating flowing block if material has changed
diff --git a/src/main/java/net/minecraft/server/BlockFlowing.java b/src/main/java/net/minecraft/server/BlockFlowing.java
2016-02-29 23:09:49 +00:00
index f35f30c..1f07f82 100644
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
2016-02-29 23:09:49 +00:00
@@ -101,6 +101,7 @@ public class BlockFlowing extends BlockFluids {
this.f(world, blockposition, iblockdata);
}
2016-02-29 23:09:49 +00:00
+ if (world.getType(blockposition).getBlock().getBlockData().getMaterial() != material) return; // Paper - Stop updating flowing block if material has changed
IBlockData iblockdata2 = world.getType(blockposition.down());
if (this.h(world, blockposition.down(), iblockdata2)) {
--
2016-03-25 04:59:37 +00:00
2.7.1.windows.2