aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-12-03 18:27:11 +0100
committerNassim Jahnke <[email protected]>2024-12-03 18:32:16 +0100
commit172c7dc7e7ee96fceaa2586d9cd9d892184f9a39 (patch)
tree9c50b19e41f4f910533c7470a22b04072e2f5365 /patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
parentc0a3d51ab35930e410fcd9752ceaff6c3f581c24 (diff)
downloadPaper-172c7dc7e7ee96fceaa2586d9cd9d892184f9a39.tar.gz
Paper-172c7dc7e7ee96fceaa2586d9cd9d892184f9a39.zip
Work
Diffstat (limited to 'patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch')
-rw-r--r--patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch b/patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
new file mode 100644
index 0000000000..469ff2ff1a
--- /dev/null
+++ b/patches/server/0084-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
@@ -0,0 +1,24 @@
+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 c0e4c3fe5e996f84dcbaa2d78f5b845147e5ae84..7611f58246960ec3fd0521ab5f1743a5b08d8241 100644
+--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
++++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
+@@ -1378,11 +1378,13 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe
+
+ @Override
+ public void updateNeighborsAt(BlockPos pos, Block block) {
++ if (captureBlockStates) { return; } // Paper - Cancel all physics during placement
+ this.updateNeighborsAt(pos, block, ExperimentalRedstoneUtils.initialOrientation(this, (Direction) null, (Direction) null));
+ }
+
+ @Override
+ public void updateNeighborsAt(BlockPos pos, Block sourceBlock, @Nullable Orientation orientation) {
++ if (captureBlockStates) { return; } // Paper - Cancel all physics during placement
+ this.neighborUpdater.updateNeighborsAtExceptFromFacing(pos, sourceBlock, (Direction) null, orientation);
+ }
+