mirror of
https://github.com/PaperMC/Paper.git
synced 2024-10-30 07:19:58 +01:00
19 lines
1.0 KiB
Diff
19 lines
1.0 KiB
Diff
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
|
|
index 285389edd01b1b36dfa8363e7ceea3903229a618..ce86590b4060d9705831303ab23f0294129760b9 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
|
@@ -537,6 +537,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
|
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);
|