derp
This commit is contained in:
@@ -9,7 +9,7 @@ var debug_ui_instance
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
get_tree().root.get_node("Lobby/PlayerSpawner") as MultiplayerSpawner
|
||||
player_spawner = get_tree().root.get_node("Lobby/PlayerSpawner") as MultiplayerSpawner
|
||||
|
||||
debug_ui_instance = debug_ui.instantiate()
|
||||
get_tree().root.add_child.call_deferred(debug_ui_instance)
|
||||
|
||||
@@ -12,7 +12,7 @@ func spawn_player(data: Dictionary) -> Player:
|
||||
|
||||
var peer_id = str(data["peer_id"])
|
||||
|
||||
new_player.set_multiplayer_authority(peer_id, true)
|
||||
new_player.set_multiplayer_authority(int(peer_id), true)
|
||||
new_player.set_player_name = peer_id
|
||||
new_player.position = Vector3.UP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user