2021-06-11 12:02:28 +00: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/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
|
2021-11-24 18:46:06 +00:00
|
|
|
index 2cc265cb984160047a44261ebbf5ff718bdf6b0c..2cec48979dafd3edf8c6744e2f5f65a922537b0f 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
2021-11-24 18:46:06 +00:00
|
|
|
@@ -546,6 +546,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
2021-06-11 12:02:28 +00:00
|
|
|
public void setBlocksDirty(BlockPos pos, BlockState old, BlockState updated) {}
|
|
|
|
|
|
|
|
public void updateNeighborsAt(BlockPos pos, Block block) {
|
|
|
|
+ if (captureBlockStates) { return; } // Paper - Cancel all physics during placement
|
|
|
|
this.neighborChanged(pos.west(), block, pos);
|
|
|
|
this.neighborChanged(pos.east(), block, pos);
|
|
|
|
this.neighborChanged(pos.below(), block, pos);
|