summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDico <Dico200@users.noreply.github.com>2016-06-21 22:35:53 +0200
committerGitHub <noreply@github.com>2016-06-21 22:35:53 +0200
commitbfcb22f650fe432d8f9d4e72d16283eece4c2dce (patch)
treeb656af6750c234a2c6e929b5d9b8cfcaf2bbdba9
parentcebdb90d601cf4cb0889212cc804893a112f10e7 (diff)
parent1602ad2185907543e19de100d0c8088150254c2a (diff)
Merge pull request #46 from psrcek/patch-1
Fix for bug, where you can shift click and toggle levers
-rw-r--r--damnspam.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/damnspam.py b/damnspam.py
index b3cbb0f..a81d3cf 100644
--- a/damnspam.py
+++ b/damnspam.py
@@ -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)