aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2023-09-22 13:13:57 -0700
committerSpottedleaf <[email protected]>2023-09-22 13:13:57 -0700
commite88856dd75de742fa10099af4fe06a07500b34fd (patch)
treed06086449e85f9b65949e65b5c11f836a9328d36 /patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
parent896aa8b54acd288703bdc973aafdb176b8578095 (diff)
downloadPaper-e88856dd75de742fa10099af4fe06a07500b34fd.tar.gz
Paper-e88856dd75de742fa10099af4fe06a07500b34fd.zip
Chunk system patch
Diffstat (limited to 'patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch')
-rw-r--r--patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch b/patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
new file mode 100644
index 0000000000..46e1468576
--- /dev/null
+++ b/patches/server/0086-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 949404f3ac0e853cfc45e28453136dd166ac9563..f13e39082638310532a0fd1dab41e809c45287c0 100644
+--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
++++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
+@@ -1600,6 +1600,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);
+ }
+