aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0051-Stop-updating-flowing-block-if-material-has-changed.patch
blob: 3ba862630b5c97c6f91087d7fb342eeb33e4a5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From adb1d170502e3b0e44d08399ec31c0633f411c1c Mon Sep 17 00:00:00 2001
From: Iceee <andrew@opticgaming.tv>
Date: Tue, 30 Jun 2015 19:31:02 -0700
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
index ff18f63..ab2e43f 100644
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
@@ -102,6 +102,7 @@ public class BlockFlowing extends BlockFluids {
             this.f(world, blockposition, iblockdata);
         }
 
+        if (world.getType(blockposition).getBlock().getMaterial() != material) return; // PaperSpigot - Stop updating flowing block if material has changed
         IBlockData iblockdata2 = world.getType(blockposition.down());
 
         if (this.h(world, blockposition.down(), iblockdata2)) {
-- 
2.5.2