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

This commit is contained in:
psrcek
2016-06-21 21:46:48 +02:00
committed by GitHub
parent cebdb90d60
commit 1602ad2185

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)