Skip to content

Commit

Permalink
fixes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Kostyuk authored Jan 7, 2018
1 parent 83522ff commit 379e1a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions civcraft/src/com/avrgaming/civcraft/structure/Bank.java
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 379e1a8

Please sign in to comment.