From c2ddcb34ce3ea64fb777a1c6166184b04031d2f8 Mon Sep 17 00:00:00 2001 From: Driftay Date: Thu, 29 Aug 2019 08:05:02 -0400 Subject: [PATCH] Fixed Object Cast in TntFill --- .../com/massivecraft/factions/cmd/tnt/CmdTntFill.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/tnt/CmdTntFill.java b/src/main/java/com/massivecraft/factions/cmd/tnt/CmdTntFill.java index b7abfdd7..7377ac24 100644 --- a/src/main/java/com/massivecraft/factions/cmd/tnt/CmdTntFill.java +++ b/src/main/java/com/massivecraft/factions/cmd/tnt/CmdTntFill.java @@ -137,17 +137,17 @@ public class CmdTntFill extends FCommand { return; } if (fme.getFaction().getTnt() < amount) { - fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH.toString()); + fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH); return; } int fullStacks = amount / 64; int remainderAmt = amount % 64; if ((remainderAmt == 0 && getEmptySlots(me) <= fullStacks)) { - fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH.toString()); + fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH); return; } if (getEmptySlots(me) + 1 <= fullStacks) { - fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH.toString()); + fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH); return; } ItemStack tnt64 = new ItemStack(Material.TNT, 64); @@ -192,7 +192,7 @@ public class CmdTntFill extends FCommand { return false; } if (getEmptySlots(me) + 1 <= fullStacks) { - fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH.toString()); + fme.msg(TL.COMMAND_TNT_WIDTHDRAW_NOTENOUGH); return false; } return true;