From 500f8978e5b51cdf06623b71873fcb0060a5893d Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 25 Nov 2025 18:12:30 +0100 Subject: [PATCH] Fix Schematic List Signed-off-by: Chaoscaot --- CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt index da0dde5a..e7f01cbd 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt @@ -328,7 +328,7 @@ class SchematicNode(id: EntityID) : IntEntity(id) { } private var nodeType by SchematicNodeTable.type var schemtype: SchematicType - get() = checkDir { SchematicType.fromDB(nodeType!!)!! } + get() = checkDir { SchematicType.fromDB(nodeType!!) ?: SchematicType.Normal } set(value) = checkDir { useDb { nodeType = value.toDB() } } var config by SchematicNodeTable.config