Skip to content

Commit

Permalink
Merge pull request #157 from TheLegionCrazy/patch-8
Browse files Browse the repository at this point in the history
fixes #156
  • Loading branch information
ataranlen authored Jan 7, 2018
2 parents 83522ff + 379e1a8 commit eb5ac38
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 eb5ac38

Please sign in to comment.