I should stop using copy pasta
This commit is contained in:
@@ -118,7 +118,7 @@ def onBreak(event):
|
|||||||
def onInteract(event):
|
def onInteract(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()
|
||||||
block = event.getClickedBlock().getState()
|
block = event.getClickedBlock()
|
||||||
btype = str(block.getType()).lower()
|
btype = str(block.getType()).lower()
|
||||||
powered = (block.getData() & 0x8) == 0x8 if btype == "lever" else False # data > 7, but this is how bukkit does it
|
powered = (block.getData() & 0x8) == 0x8 if btype == "lever" else False # data > 7, but this is how bukkit does it
|
||||||
pos_str = location_str(block)
|
pos_str = location_str(block)
|
||||||
|
|||||||
Reference in New Issue
Block a user