Skip to content

Commit

Permalink
float -> long issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Jul 20, 2024
1 parent 6c3e483 commit 3cd60f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static void onGuiTick() {
public static float getRenderScale(GuiContainer gui, Slot slot) {
if (lastHoveredGui != gui || !isAnimating(slot) || NEAConfig.isBlacklisted(gui)) return 1f;
float min = 1f, max = 1.25f;
float slotTime = hoveredSlots.getLong(slot);
long slotTime = hoveredSlots.getLong(slot);
float val = (NEA.time() - Math.abs(slotTime)) / (float) NEAConfig.hoverAnimationTime;
if (slotTime < 0) {
// negative time means slot is no longer hovered
Expand Down

0 comments on commit 3cd60f5

Please sign in to comment.