2022-06-07 21:55:39 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
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
|
2023-09-22 14:33:54 +02:00
|
|
|
index 71e448a44b1d85bba4481fd02612d687aa9df4a1..f0820ab21ff17601c896099d664d18283c759384 100644
|
2022-06-07 21:55:39 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2023-09-21 22:14:58 +02:00
|
|
|
@@ -1366,6 +1366,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
|
2022-06-07 21:55:39 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void updateNeighborsAt(BlockPos pos, Block sourceBlock) {
|
|
|
|
+ if (captureBlockStates) { return; } // Paper - Cancel all physics during placement
|
|
|
|
this.neighborUpdater.updateNeighborsAtExceptFromFacing(pos, sourceBlock, (Direction) null);
|
|
|
|
}
|
|
|
|
|