aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0090-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0090-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch')
-rw-r--r--patches/server/0090-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0090-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch b/patches/server/0090-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
new file mode 100644
index 0000000000..204de0aa56
--- /dev/null
+++ b/patches/server/0090-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+Date: Sun, 3 Apr 2016 17:48:50 -0400
+Subject: [PATCH] Fix Cancelling BlockPlaceEvent triggering physics
+
+
+diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
+index b6bc5edad1cf6b54e1b18dddd5acf4002f3c97fd..ab91dc3c9a738097b79bdecbcbe41557aa3ed0de 100644
+--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
++++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
+@@ -1397,6 +1397,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
+
+ @Override
+ public void updateNeighborsAt(BlockPos pos, Block sourceBlock) {
++ if (captureBlockStates) { return; } // Paper - Cancel all physics during placement
+ this.neighborUpdater.updateNeighborsAtExceptFromFacing(pos, sourceBlock, (Direction) null);
+ }
+