mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Fixed a bug where the piston could break a shop
This commit is contained in:
parent
7e157e66d3
commit
ac7a14cab8
@ -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) {
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user