Add lag compensation for breaking blocks

This commit is contained in:
Spottedleaf
2023-09-23 22:10:40 -07:00
parent a20286c5a8
commit 0e092b4f36
3 changed files with 134 additions and 78 deletions

View File

@@ -58,7 +58,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ this.getEntityData().resendPossiblyDesyncedDataValues(java.util.List.of(DATA_LIVING_ENTITY_FLAGS), serverPlayer);
+ }
+ // Paper end
+
// Paper start - lag compensate eating
protected long eatStartTime;
protected int totalEatTimeTicks;
private void updatingUsingItem() {
if (this.isUsingItem()) {
if (ItemStack.isSameItem(this.getItemInHand(this.getUsedItemHand()), this.useItem)) {