mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-24 08:43:49 -07:00
Extend Player Interact cancellation to cover Jigsaw blocks (#10719)
This commit is contained in:
@@ -124,7 +124,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- player.connection.send(new ClientboundBlockUpdatePacket(world, blockposition.above()));
|
- player.connection.send(new ClientboundBlockUpdatePacket(world, blockposition.above()));
|
||||||
+ //player.connection.send(new ClientboundBlockUpdatePacket(world, blockposition.above())); // Paper - Don't resync blocks
|
+ //player.connection.send(new ClientboundBlockUpdatePacket(world, blockposition.above())); // Paper - Don't resync blocks
|
||||||
// Paper start - extend Player Interact cancellation // TODO: consider merging this into the extracted method
|
// Paper start - extend Player Interact cancellation // TODO: consider merging this into the extracted method
|
||||||
} else if (iblockdata.is(Blocks.STRUCTURE_BLOCK) || iblockdata.getBlock() instanceof net.minecraft.world.level.block.CommandBlock) {
|
} else if (iblockdata.is(Blocks.JIGSAW) || iblockdata.is(Blocks.STRUCTURE_BLOCK) || iblockdata.getBlock() instanceof net.minecraft.world.level.block.CommandBlock) {
|
||||||
player.connection.send(new net.minecraft.network.protocol.game.ClientboundContainerClosePacket(this.player.containerMenu.containerId));
|
player.connection.send(new net.minecraft.network.protocol.game.ClientboundContainerClosePacket(this.player.containerMenu.containerId));
|
||||||
diff --git a/src/main/java/net/minecraft/world/item/BucketItem.java b/src/main/java/net/minecraft/world/item/BucketItem.java
|
diff --git a/src/main/java/net/minecraft/world/item/BucketItem.java b/src/main/java/net/minecraft/world/item/BucketItem.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
@@ -18,7 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
// send a correcting update to the client for the block above as well, this because of replaceable blocks (such as grass, sea grass etc)
|
// send a correcting update to the client for the block above as well, this because of replaceable blocks (such as grass, sea grass etc)
|
||||||
player.connection.send(new ClientboundBlockUpdatePacket(world, blockposition.above()));
|
player.connection.send(new ClientboundBlockUpdatePacket(world, blockposition.above()));
|
||||||
+ // Paper start - extend Player Interact cancellation // TODO: consider merging this into the extracted method
|
+ // Paper start - extend Player Interact cancellation // TODO: consider merging this into the extracted method
|
||||||
+ } else if (iblockdata.is(Blocks.STRUCTURE_BLOCK) || iblockdata.getBlock() instanceof net.minecraft.world.level.block.CommandBlock) {
|
+ } else if (iblockdata.is(Blocks.JIGSAW) || iblockdata.is(Blocks.STRUCTURE_BLOCK) || iblockdata.getBlock() instanceof net.minecraft.world.level.block.CommandBlock) {
|
||||||
+ player.connection.send(new net.minecraft.network.protocol.game.ClientboundContainerClosePacket(this.player.containerMenu.containerId));
|
+ player.connection.send(new net.minecraft.network.protocol.game.ClientboundContainerClosePacket(this.player.containerMenu.containerId));
|
||||||
}
|
}
|
||||||
+ // Paper end - extend Player Interact cancellation
|
+ // Paper end - extend Player Interact cancellation
|
||||||
|
Reference in New Issue
Block a user