Fix debug stick update suppression (Fixes #5038)
This commit is contained in:
parent
bb4247f862
commit
ace3146df2
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ This patch also maintains the behavior of the BlockPlaceEvent, this
|
|||
behavior will NOT be guaranteed in the future, however.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
index 3adb29f004d2fee36f3ee9b21ee5417e84b64837..5a62ac72edc49cd032cd02fa8d007959517d063b 100644
|
||||
index 3adb29f004d2fee36f3ee9b21ee5417e84b64837..c84a062d38dcf8c46781b0e30bf3e0821e34dd58 100644
|
||||
--- a/src/main/java/net/minecraft/server/ItemStack.java
|
||||
+++ b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
@@ -211,6 +211,7 @@ public final class ItemStack {
|
||||
|
@ -41,7 +41,7 @@ index 3adb29f004d2fee36f3ee9b21ee5417e84b64837..5a62ac72edc49cd032cd02fa8d007959
|
|||
}
|
||||
|
||||
- world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag, 512); // send null chunk as chunk.k() returns false by this point
|
||||
+ world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag, 512 ^ (doPhysicsUpdate ? 0 : 16)); // send null chunk as chunk.k() returns false by this point // Paper
|
||||
+ world.notifyAndUpdatePhysics(newblockposition, null, oldBlock, block, world.getType(newblockposition), updateFlag | (doPhysicsUpdate ? 0 : 16), 512); // send null chunk as chunk.k() returns false by this point // Paper
|
||||
}
|
||||
|
||||
// Special case juke boxes as they update their tile entity. Copied from ItemRecord.
|
||||
|
|
Loading…
Reference in a new issue