forked from SteamWar/SteamWar
Add prepared flag to schematics and refactor related logic
This commit is contained in:
@@ -309,8 +309,12 @@ public class CheckCommand extends SWCommand {
|
||||
private void concludeCheckSession(String reason, SchematicType type, BooleanSupplier sendMessageIsOnline) {
|
||||
if(SchematicNode.getSchematicNode(schematic.getId()) != null) {
|
||||
CheckedSchematic.create(schematic, checker.user().getId(), startTime, Timestamp.from(Instant.now()), reason, sendMessageIsOnline.getAsBoolean());
|
||||
if(type != null)
|
||||
if(type != null) {
|
||||
schematic.setSchemtype(type);
|
||||
if (type == SchematicType.Normal) {
|
||||
schematic.setPrepared(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
remove();
|
||||
|
||||
Reference in New Issue
Block a user