aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2023-09-10 12:28:03 +1000
committerNassim Jahnke <[email protected]>2023-09-10 12:28:03 +1000
commit72e87abc2db813ecd74a323c33a7b9c79b0c67b9 (patch)
tree37012a296b6095897a3f364fa85beec7502283c7 /patches/server/0086-Fix-Cancelling-BlockPlaceEvent-triggering-physics.patch
parent33bec7f20a5d3e20d9a8c0a16a1e5276add5d4fb (diff)
downloadPaper-72e87abc2db813ecd74a323c33a7b9c79b0c67b9.tar.gz
Paper-72e87abc2db813ecd74a323c33a7b9c79b0c67b9.zip
Strip raytracing for EntityLiving#hasLineOfSight
Co-authored-by: Paul Sauve <[email protected]>
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..e84681435a
--- /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 7da059a2e8560250021654f3d5586027c15c7dd3..35b59c83a35bc3a4d05bc95b0caec1f1865589c0 100644
+--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
++++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
+@@ -1598,6 +1598,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);
+ }
+