From 379e1a80ef584ab74a46e86a75a02d50b1f0682c Mon Sep 17 00:00:00 2001 From: Egor Kostyuk Date: Sun, 7 Jan 2018 09:59:29 +0300 Subject: [PATCH] fixes #156 --- civcraft/src/com/avrgaming/civcraft/structure/Bank.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/civcraft/src/com/avrgaming/civcraft/structure/Bank.java b/civcraft/src/com/avrgaming/civcraft/structure/Bank.java index c9eeb58a7..57a99542a 100644 --- a/civcraft/src/com/avrgaming/civcraft/structure/Bank.java +++ b/civcraft/src/com/avrgaming/civcraft/structure/Bank.java @@ -223,10 +223,9 @@ public void processSignAction(Player player, StructureSign sign, PlayerInteractE } try { - - if (LoreMaterial.isCustom(player.getInventory().getItemInMainHand())) { + ItemStack itemStack = player.getInventory().getItemInMainHand(); + if (LoreMaterial.isCustom(itemStack) || CivGlobal.isBonusGoodie(itemStack)) throw new CivException(CivSettings.localize.localizedString("bank_invalidItem")); - } switch (sign.getAction()) { case "iron":