mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
|
From 114d4ec98f8118bca7faf64c5d7a0eeac6b2bebf Mon Sep 17 00:00:00 2001
|
||
|
From: Byteflux <byte@byteflux.net>
|
||
|
Date: Wed, 2 Mar 2016 00:55:24 -0600
|
||
|
Subject: [PATCH] Optimize draining
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/server/BlockFlowing.java b/src/main/java/net/minecraft/server/BlockFlowing.java
|
||
|
index 328615c..ec04cd8 100644
|
||
|
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
|
||
|
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
|
||
|
@@ -88,7 +88,13 @@ public class BlockFlowing extends BlockFluids {
|
||
|
iblockdata = iblockdata.set(BlockFlowing.LEVEL, Integer.valueOf(i1));
|
||
|
world.setTypeAndData(blockposition, iblockdata, 2);
|
||
|
world.a(blockposition, (Block) this, j);
|
||
|
- world.applyPhysics(blockposition, this);
|
||
|
+ // Paper start - Optimize draining
|
||
|
+ world.e(blockposition.west(), this);
|
||
|
+ world.e(blockposition.east(), this);
|
||
|
+ world.e(blockposition.up(), this);
|
||
|
+ world.e(blockposition.north(), this);
|
||
|
+ world.e(blockposition.south(), this);
|
||
|
+ // Paper end
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
--
|
||
|
2.7.2
|
||
|
|