mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 06:11:24 +00:00
debug log structure exception
This commit is contained in:
@@ -142,11 +142,14 @@ public class StructureScript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean applyBlock(TerraImplementationArguments arguments) {
|
private boolean applyBlock(TerraImplementationArguments arguments) {
|
||||||
try {
|
synchronized(block) {
|
||||||
return !block.apply(arguments).getLevel().equals(Block.ReturnLevel.FAIL);
|
try {
|
||||||
} catch(RuntimeException e) {
|
return !block.apply(arguments).getLevel().equals(Block.ReturnLevel.FAIL);
|
||||||
main.getLogger().severe("Failed to generate structure at " + arguments.getBuffer().getOrigin() + ": " + e.getMessage());
|
} catch(RuntimeException e) {
|
||||||
return false;
|
main.getLogger().severe("Failed to generate structure at " + arguments.getBuffer().getOrigin() + ": " + e.getMessage());
|
||||||
|
Debug.stack(e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user