mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 17:52:02 -07:00
readd dropped ack diff
This commit is contained in:
@@ -1070,7 +1070,7 @@
|
|||||||
if (this.player.hasClientLoaded()) {
|
if (this.player.hasClientLoaded()) {
|
||||||
BlockPos pos = packet.getPos();
|
BlockPos pos = packet.getPos();
|
||||||
this.player.resetLastActionTime();
|
this.player.resetLastActionTime();
|
||||||
@@ -1200,32 +_,94 @@
|
@@ -1200,32 +_,95 @@
|
||||||
case SWAP_ITEM_WITH_OFFHAND:
|
case SWAP_ITEM_WITH_OFFHAND:
|
||||||
if (!this.player.isSpectator()) {
|
if (!this.player.isSpectator()) {
|
||||||
ItemStack itemInHand = this.player.getItemInHand(InteractionHand.OFF_HAND);
|
ItemStack itemInHand = this.player.getItemInHand(InteractionHand.OFF_HAND);
|
||||||
@@ -1148,7 +1148,7 @@
|
|||||||
+ this.player.gameMode.captureSentBlockEntities = true;
|
+ this.player.gameMode.captureSentBlockEntities = true;
|
||||||
+ // Paper end - Send block entities after destroy prediction
|
+ // Paper end - Send block entities after destroy prediction
|
||||||
this.player.gameMode.handleBlockBreakAction(pos, action, packet.getDirection(), this.player.level().getMaxY(), packet.getSequence());
|
this.player.gameMode.handleBlockBreakAction(pos, action, packet.getDirection(), this.player.level().getMaxY(), packet.getSequence());
|
||||||
- this.ackBlockChangesUpTo(packet.getSequence());
|
this.ackBlockChangesUpTo(packet.getSequence());
|
||||||
+ // Paper start - Send block entities after destroy prediction
|
+ // Paper start - Send block entities after destroy prediction
|
||||||
+ this.player.gameMode.captureSentBlockEntities = false;
|
+ this.player.gameMode.captureSentBlockEntities = false;
|
||||||
+ // If a block entity was modified speedup the block change ack to avoid the block entity
|
+ // If a block entity was modified speedup the block change ack to avoid the block entity
|
||||||
|
Reference in New Issue
Block a user