2015-09-13 00:57:39 +00:00
|
|
|
From f397692854ffdf5028e8ed4f904228e13150da68 Mon Sep 17 00:00:00 2001
|
2015-04-18 09:31:53 +00:00
|
|
|
From: Byteflux <byte@byteflux.net>
|
|
|
|
Date: Fri, 10 Apr 2015 02:24:20 -0700
|
|
|
|
Subject: [PATCH] Optimize draining
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockFlowing.java b/src/main/java/net/minecraft/server/BlockFlowing.java
|
2015-07-01 02:23:17 +00:00
|
|
|
index de1dddb..ff18f63 100644
|
2015-04-18 09:31:53 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
|
2015-07-01 02:23:17 +00:00
|
|
|
@@ -88,7 +88,14 @@ public class BlockFlowing extends BlockFluids {
|
2015-04-18 09:31:53 +00:00
|
|
|
iblockdata = iblockdata.set(BlockFlowing.LEVEL, Integer.valueOf(i1));
|
|
|
|
world.setTypeAndData(blockposition, iblockdata, 2);
|
|
|
|
world.a(blockposition, (Block) this, j);
|
|
|
|
- world.applyPhysics(blockposition, this);
|
|
|
|
+ // PaperSpigot start - Optimize draining
|
2015-07-01 02:23:17 +00:00
|
|
|
+ world.d(blockposition.west(), this);
|
|
|
|
+ world.d(blockposition.east(), this);
|
|
|
|
+ world.d(blockposition.up(), this);
|
|
|
|
+ world.d(blockposition.north(), this);
|
|
|
|
+ world.d(blockposition.south(), this);
|
|
|
|
+ world.spigotConfig.antiXrayInstance.updateNearbyBlocks(world, blockposition); // Spigot
|
2015-04-18 09:31:53 +00:00
|
|
|
+ // PaperSpigot end
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
--
|
2015-09-13 00:57:39 +00:00
|
|
|
2.5.1
|
2015-04-18 09:31:53 +00:00
|
|
|
|