Skip to content

Commit

Permalink
fireball-cooldown-visually: Show cooldown in hotbar in 1.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEAlderson committed Jul 28, 2024
1 parent c71999e commit 933a65d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void onPlayerUseSpecialItem(PlayerUseSpecialItemEvent event) {

try {
HumanEntity.class.getMethod("setCooldown", Material.class, int.class)
.invoke(player, is.getType(), MainConfig.fireball_cooldown_time);
.invoke(player, is.getType(), (int) MainConfig.fireball_cooldown_time);
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 933a65d

Please sign in to comment.