Paper/Spigot-Server-Patches/0034-Stop-updating-flowing-block-if-material-has-changed.patch

22 Zeilen
934 B
Diff

2016-11-17 03:23:38 +01:00
From fb7f9985a6e06097d8a35efff62d104649223bdd Mon Sep 17 00:00:00 2001
From: Iceee <andrew@opticgaming.tv>
2016-03-01 00:09:49 +01: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-11-17 03:23:38 +01:00
index e9f73cd..83433e8 100644
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
2016-11-17 03:23:38 +01:00
@@ -95,6 +95,7 @@ public class BlockFlowing extends BlockFluids {
this.f(world, blockposition, iblockdata);
}
2016-03-01 00:09:49 +01: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-11-17 03:23:38 +01:00
2.10.2