diff --git a/src/main/java/com/songoda/epicvouchers/libraries/inventory/icons/IntegerIcon.java b/src/main/java/com/songoda/epicvouchers/libraries/inventory/icons/IntegerIcon.java index b8bb2a0..839033f 100644 --- a/src/main/java/com/songoda/epicvouchers/libraries/inventory/icons/IntegerIcon.java +++ b/src/main/java/com/songoda/epicvouchers/libraries/inventory/icons/IntegerIcon.java @@ -9,6 +9,6 @@ import java.util.function.BiConsumer; public class IntegerIcon extends StringIcon { public IntegerIcon(EpicVouchers instance, String string, int current, BiConsumer consumer) { - super(instance, Material.IRON_INGOT, string, "" + current, (player, edited) -> consumer.accept(player, Integer.parseInt(edited)), StringUtils::isNumeric); + super(instance, Material.IRON_INGOT, string, String.valueOf(current), (player, edited) -> consumer.accept(player, edited.equals("") ? 0 : Integer.parseInt(edited)), StringUtils::isNumeric); } }