Ship mostly works #10
@ -145,7 +145,7 @@ func receive_global_rotation_update(value: Vector3):
|
||||
|
||||
|
||||
func _on_property_update(node_id: String, property_name: String, value: Variant) -> void:
|
||||
if node_id == network_uuid:
|
||||
if NetworkManager.node_map.has(node_id) and node_id == network_uuid:
|
||||
if property_name == "global_position":
|
||||
receive_global_position_update(value)
|
||||
elif property_name == "global_rotation":
|
||||
@ -153,5 +153,3 @@ func _on_property_update(node_id: String, property_name: String, value: Variant)
|
||||
else:
|
||||
var node = NetworkManager.node_map[node_id]
|
||||
node.set(property_name, value)
|
||||
else:
|
||||
GameConsole.log_warning("Received a property update for a node that doesn't match the network UUID of this ship.")
|
||||
|
Loading…
Reference in New Issue
Block a user