Block break fix 2

This commit is contained in:
Dico200
2015-11-22 17:18:03 +01:00
parent f941f05f1d
commit d83345d8f2

View File

@@ -277,7 +277,7 @@ def on_break(event):
def check_sign(event, block, attached = True):
player = event.getPlayer()
sign = getSign(fromLoc(block.getLocation()))
if not canEdit(sign, player) and not can_build(player, block.getLocation()):
if not canEdit(sign, player) and not can_build(player, block):
event.setCancelled(True)
msg(event.getPlayer(), signsMsg("You cannot break %s" % ("the sign attached to that block" if attached else "that sign")))