Fix for bug, where you can shift click and toggle levers #46

Merged
davidpanic merged 1 commits from patch-1 into dev 2016-06-21 20:35:53 +00:00

View File

@ -173,8 +173,6 @@ def on_block_break(event):
def on_interact(event):
if (str(event.getAction()) == "RIGHT_CLICK_BLOCK") and not event.isCancelled():
sender = event.getPlayer()
if sender.isSneaking():
return
block = event.getClickedBlock()
pos_str = location_str(block)
data = inputs.get(pos_str)