forked from SteamWar/SteamWar
@@ -328,7 +328,7 @@ class SchematicNode(id: EntityID<Int>) : 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user