fix(network): prevent null multiplayer peer crashes offline/teardown and fix Nakama RPC session validation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
extends SceneTree
|
||||
|
||||
func _init():
|
||||
var me = ProjectSettings.localize_path(ProjectSettings.globalize_path(get_script().resource_path))
|
||||
var dir = ProjectSettings.localize_path(me.get_base_dir())
|
||||
|
||||
if dir != "res://":
|
||||
print("Must be run with the script dir as the res:// path")
|
||||
print("Current path: ", ProjectSettings.globalize_path(dir))
|
||||
print("RES:// path: ", ProjectSettings.globalize_path("res://"))
|
||||
quit()
|
||||
return
|
||||
var n = load("res://tester.gd").new()
|
||||
root.add_child(n)
|
||||
current_scene = n
|
||||
Reference in New Issue
Block a user