Skip to content

Commit f1fcfc6

Browse files
committed
Restore enchanting pickup completion delay
1 parent 091a022 commit f1fcfc6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

common/src/main/java/com/loohp/interactionvisualizer/objectholders/EnchantmentTableAnimation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public class EnchantmentTableAnimation {
6767
public static final int PLAY_PICKUP = 2;
6868
public static final int CLOSE_TABLE = 3;
6969

70-
// ClientboundTakeItemEntityPacket uses a fixed three-tick client animation.
71-
private static final int CLIENT_PICKUP_ANIMATION_TICKS = 3;
70+
private static final int PICKUP_COMPLETION_DELAY_TICKS = 8;
7271

7372
private static final Map<Block, EnchantmentTableAnimation> tables = new ConcurrentHashMap<>();
7473

@@ -284,7 +283,7 @@ private CompletableFuture<Integer> playPickUpAnimation(ItemStack itemstack) {
284283
Scheduler.runTaskLater(plugin, () -> {
285284
this.item = Optional.empty();
286285
future.complete(PLAY_PICKUP);
287-
}, CLIENT_PICKUP_ANIMATION_TICKS);
286+
}, PICKUP_COMPLETION_DELAY_TICKS);
288287
return future;
289288
}
290289

0 commit comments

Comments
 (0)