move line to correct position
This commit is contained in:
@@ -109,11 +109,11 @@ def on_block_break(event):
|
|||||||
removing_input = True
|
removing_input = True
|
||||||
test_event = BlockBreakEvent(block, sender)
|
test_event = BlockBreakEvent(block, sender)
|
||||||
server.getPluginManager().callEvent(test_event)
|
server.getPluginManager().callEvent(test_event)
|
||||||
|
removing_input = False
|
||||||
if test_event.isCancelled():
|
if test_event.isCancelled():
|
||||||
event.setCancelled(True)
|
event.setCancelled(True)
|
||||||
msg(sender, "&cYou are not allowed to remove this input")
|
msg(sender, "&cYou are not allowed to remove this input")
|
||||||
return True
|
return True
|
||||||
removing_input = False
|
|
||||||
inputs.pop(pos_str) # remove
|
inputs.pop(pos_str) # remove
|
||||||
save_inputs()
|
save_inputs()
|
||||||
msg(sender, "&eSuccessfully removed this input!")
|
msg(sender, "&eSuccessfully removed this input!")
|
||||||
|
|||||||
Reference in New Issue
Block a user