Fix for bug, where you can shift click and toggle levers #46
@ -173,8 +173,6 @@ def on_block_break(event):
|
|||||||
def on_interact(event):
|
def on_interact(event):
|
||||||
if (str(event.getAction()) == "RIGHT_CLICK_BLOCK") and not event.isCancelled():
|
if (str(event.getAction()) == "RIGHT_CLICK_BLOCK") and not event.isCancelled():
|
||||||
sender = event.getPlayer()
|
sender = event.getPlayer()
|
||||||
if sender.isSneaking():
|
|
||||||
return
|
|
||||||
block = event.getClickedBlock()
|
block = event.getClickedBlock()
|
||||||
pos_str = location_str(block)
|
pos_str = location_str(block)
|
||||||
data = inputs.get(pos_str)
|
data = inputs.get(pos_str)
|
||||||
|
Reference in New Issue
Block a user