This commit is contained in:
Gary Steven Keough 2024-12-16 21:52:42 -05:00
parent f30b5b79d3
commit 12231567b8

View File

@ -113,13 +113,6 @@ func _add_ship_helm(_ship_helm_scene: PackedScene):
func _on_property_update(uuid: String, property_name: String, value: Variant): func _on_property_update(uuid: String, property_name: String, value: Variant):
if NetworkManager.node_map.has(uuid): if NetworkManager.node_map.has(uuid):
var node = NetworkManager.node_map[uuid] var node = NetworkManager.node_map[uuid]
if piloting_player != null and !piloting_player.is_network_authority:
if property_name == "global_position":
node.global_position = value
return
if property_name == "global_rotation":
node.global_position = value
return
node.set(property_name, value) node.set(property_name, value)
else: else:
printerr("Received property update but node_id is wrong? Expected " + str(uuid) + " but got " + str(uuid)) printerr("Received property update but node_id is wrong? Expected " + str(uuid) + " but got " + str(uuid))