Archived
Testing for sign breaking problems, added trace
This commit is contained in:
@@ -253,6 +253,7 @@ faces = {
|
|||||||
|
|
||||||
@hook.event("block.BlockBreakEvent", "highest")
|
@hook.event("block.BlockBreakEvent", "highest")
|
||||||
def on_break(event):
|
def on_break(event):
|
||||||
|
try:
|
||||||
global checking_block
|
global checking_block
|
||||||
if checking_block or event.isCancelled():
|
if checking_block or event.isCancelled():
|
||||||
return
|
return
|
||||||
@@ -269,6 +270,8 @@ def on_break(event):
|
|||||||
block3 = block.getRelative(BlockFace.UP)
|
block3 = block.getRelative(BlockFace.UP)
|
||||||
if block3.getMaterial == Material.SIGN_POST:
|
if block3.getMaterial == Material.SIGN_POST:
|
||||||
check_sign(event, block3)
|
check_sign(event, block3)
|
||||||
|
except:
|
||||||
|
error(trace())
|
||||||
|
|
||||||
|
|
||||||
def check_sign(event, block, attached = True):
|
def check_sign(event, block, attached = True):
|
||||||
|
|||||||
Reference in New Issue
Block a user