aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0032-Optimize-draining.patch
blob: a2af13d36b0186372f5bddb54a5a5823ee22ab4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From fedd40dec713035b2abc4c4a7f5da4054813ff59 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 036e861..f35f30c 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.8.0