geforkt von Mirrors/Paper
0728696e06
Base our vanish changes on top of that event.
22 Zeilen
904 B
Diff
22 Zeilen
904 B
Diff
From 3fdb1dae891799dd98d2a288e12a3efc279ae9d6 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 841a6c7..46b1323 100644
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
|
@@ -532,6 +532,7 @@ public abstract class World implements IBlockAccess {
|
|
}
|
|
|
|
public void applyPhysics(BlockPosition blockposition, Block block, boolean flag) {
|
|
+ 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);
|
|
--
|
|
2.9.3
|
|
|