Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
c02c01b2c5
Also removes our toggle for Spigot's option, I doubt anyone uses it.
22 Zeilen
946 B
Diff
22 Zeilen
946 B
Diff
From dac6bac6e17684e8b5b4b0fa5e51fe76f0f5b92f Mon Sep 17 00:00:00 2001
|
|
From: Iceee <andrew@opticgaming.tv>
|
|
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
|
|
index 72654df..def694a 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
|
|
@@ -101,6 +101,7 @@ public class BlockFlowing extends BlockFluids {
|
|
this.f(world, blockposition, iblockdata);
|
|
}
|
|
|
|
+ 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)) {
|
|
--
|
|
2.10.0.windows.1
|
|
|