SteamWar/SpigotCore
Archiviert
13
0

Hotfix Update ParentNode FK Fail
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Chaoscaot 2021-11-20 17:39:30 +01:00
Ursprung 0f917ac4f6
Commit 0ff834a4d0

Datei anzeigen

@ -94,6 +94,9 @@ public class SchematicNode {
owner = set.getInt("NodeOwner"); owner = set.getInt("NodeOwner");
name = set.getString("NodeName"); name = set.getString("NodeName");
parent = set.getInt("ParentNode"); parent = set.getInt("ParentNode");
if(set.wasNull()) {
parent = null;
}
item = set.getString("NodeItem"); item = set.getString("NodeItem");
type = set.getString("NodeType"); type = set.getString("NodeType");
lastUpdate = set.getTimestamp("LastUpdate"); lastUpdate = set.getTimestamp("LastUpdate");
@ -417,6 +420,7 @@ public class SchematicNode {
} }
public SchematicNode getParentNode() { public SchematicNode getParentNode() {
if(parent == null) return null;
return SchematicNode.getSchematicNode(parent); return SchematicNode.getSchematicNode(parent);
} }