Fixed a bug where the piston could break a shop

This commit is contained in:
Acrobot 2012-11-30 14:26:13 +01:00
parent 7e157e66d3
commit ac7a14cab8
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public class SignBreak implements Listener {
}
private static boolean canDestroyShop(Player player, String name) {
return player == null || hasShopBreakingPermission(player) || canUseName(player, name);
return player != null && (hasShopBreakingPermission(player) || canUseName(player, name));
}
private static boolean canUseName(Player player, String name) {

View File

@ -2,7 +2,7 @@ name: ChestShop
main: com.Acrobot.ChestShop.ChestShop
version: 3.50t0032
version: 3.50t0034
#for CButD
dev-url: http://dev.bukkit.org/server-mods/chestshop/