Add investigation support to schematics and refine rejection handling

This commit is contained in:
2025-07-18 14:11:26 +02:00
parent a21760003e
commit e17ba8bdcb
4 changed files with 39 additions and 7 deletions
@@ -466,6 +466,16 @@ public class SchematicNode {
setConfig(ConfigFlags.IS_PREPARED, prepared);
}
public boolean isInvestigation() {
return getConfig(ConfigFlags.INVESTIGATION);
}
public void setInvestigation(boolean investigation) {
if (isDir())
throw new SecurityException("Is Directory");
setConfig(ConfigFlags.INVESTIGATION, investigation);
}
public boolean getConfig(ConfigFlags flag) {
return (config & (1 << flag.ordinal())) != 0;
}
@@ -629,6 +639,7 @@ public class SchematicNode {
public static enum ConfigFlags {
REPLACE_COLOR,
ALLOW_REPLAY,
IS_PREPARED
IS_PREPARED,
INVESTIGATION,
}
}