mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
603159dedf
Removes PlayerMicroMoveEvent API, the ability to disable the AsyncCatcher, and the TeleportPassengerVehicleWithPlayer patch
27 lines
No EOL
1.4 KiB
Diff
27 lines
No EOL
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
|
|
@@ -0,0 +0,0 @@ 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);
|
|
+ // PaperSpigot start - Optimize draining
|
|
+ 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
|
|
+ // PaperSpigot end
|
|
}
|
|
}
|
|
} else {
|
|
--
|