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
|
2022-12-08 11:53:14 +01:00
|
|
|
index e7d07d1f86af49b8729f6ac66b398ee6aae5ab4a..0d08690aade0e3334c583b62e0abf7bbab9a0c59 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
|
2022-12-08 11:53:14 +01:00
|
|
|
@@ -1458,6 +1458,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);
|
|
|
|
}
|
|
|
|
|