- Fixed block destruction

This commit is contained in:
Acrobot 2011-12-02 11:38:20 +01:00
parent 06ff63ecfd
commit 353dacf1a0
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class blockBreak extends BlockListener {
if (restrictedSign(block)) return true; //If the block is a restricted sign (and the player is not an admin/mod)
Sign sign = uBlock.findSign(block, uLongName.stripName(player.getName()));
Sign sign = uBlock.findSign(block, (player != null ? uLongName.stripName(player.getName()) : null));
if (!isCorrectSign(sign, block)) return false; //It's not a correct shop sign, so don't cancel it
if (playerIsNotOwner(player, sign)) return true; //Player is not the owner of the shop - cancel!
if (weShouldReturnMoney()) Economy.add(uLongName.getName(sign.getLine(0)), Config.getFloat(Property.SHOP_REFUND_PRICE)); //Add some money

View File

@ -2,7 +2,7 @@ name: ChestShop
main: com.Acrobot.ChestShop.ChestShop
version: 3.28
version: 3.29
author: Acrobot