Do not perform neighbour updates when using debug stick (Fixes #2134)
CB blindly drops any update flags when recording block modifications, this causes the debug stick to blindly update neighbouring blocks on usage in order to control this, we will special case this item, however, this ideally should be fixed by recording the actual update flags used, but will induce ABI breaks... This patch also maintains the behavior of the BlockPlaceEvent, this behavior will NOT be guaranteed in the future, however.
This commit is contained in:
@@ -3907,6 +3907,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
if (packet.a()) {
|
||||
throw new SkipEncodeException(throwable);
|
||||
} else {
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayInBEdit.java b/src/main/java/net/minecraft/server/PacketPlayInBEdit.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PacketPlayInBEdit.java
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayInBEdit.java
|
||||
@@ -0,0 +0,0 @@ import java.io.IOException;
|
||||
|
||||
public class PacketPlayInBEdit implements Packet<PacketListenerPlayIn> {
|
||||
|
||||
- private ItemStack a;
|
||||
+ private ItemStack a; public ItemStack getBook() { return a; } // Paper - OBFHELPER
|
||||
private boolean b;
|
||||
private int c;
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java b/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java
|
||||
|
||||
Reference in New Issue
Block a user