mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
19 lines
908 B
Diff
19 lines
908 B
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/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||
|
index 2c6774082..5b2d67260 100644
|
||
|
--- a/src/main/java/net/minecraft/server/World.java
|
||
|
+++ b/src/main/java/net/minecraft/server/World.java
|
||
|
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, IIBlockAccess, AutoClose
|
||
|
}
|
||
|
|
||
|
public void applyPhysics(BlockPosition blockposition, Block block) {
|
||
|
+ if (captureBlockStates) { return; } // Paper - Cancel all physics during placement
|
||
|
this.a(blockposition.west(), block, blockposition);
|
||
|
this.a(blockposition.east(), block, blockposition);
|
||
|
this.a(blockposition.down(), block, blockposition);
|
||
|
--
|