From d98e43a7c212e0651f99cace45c8d53ead8aa06a Mon Sep 17 00:00:00 2001 From: Daniel Norris Date: Wed, 12 Oct 2022 05:32:23 +0100 Subject: [PATCH] fix(forge16): finish anim --- .../com/envyful/crates/type/crate/impl/SimpleItemCrate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge16/src/main/java/com/envyful/crates/type/crate/impl/SimpleItemCrate.java b/forge16/src/main/java/com/envyful/crates/type/crate/impl/SimpleItemCrate.java index cb40276..a92f3a0 100644 --- a/forge16/src/main/java/com/envyful/crates/type/crate/impl/SimpleItemCrate.java +++ b/forge16/src/main/java/com/envyful/crates/type/crate/impl/SimpleItemCrate.java @@ -174,7 +174,7 @@ public void open(ForgeEnvyPlayer player) { int slot = spinSlots.get(0); - if (timer.get() >= (this.spinDuration - 5)) { + if (timer.get() == ((2 * this.spinDuration) - 5)) { pane1.set(slot % 9, slot / 9, GuiFactory.displayable(new ItemBuilder(finalReward.getDisplayItem()) .enchant(Enchantments.UNBREAKING, 1) .itemFlag(ItemFlag.HIDE_ENCHANTS)