Fix bootstrapper parse error in exports — remove forest-brawl type dependency
lan-bootstrapper.gd and noray-bootstrapper.gd both had a host_only() function that referenced BrawlerSpawner (class_name from forest-brawl). Since examples/forest-brawl/ is excluded from exports, the type was undefined, causing the entire script to fail loading with: 'Could not find type BrawlerSpawner in current scope' This meant the Join and Host button signal handlers never existed, so clicking them did nothing — no error shown, no connection, no UI change. Fix: remove the unused host_only() function from both bootstrapper files.
This commit is contained in:
@@ -50,12 +50,6 @@ func disconnect_from_noray():
|
||||
Noray.disconnect_from_host()
|
||||
oid_input.clear()
|
||||
|
||||
func host_only():
|
||||
var brawler_spawner: BrawlerSpawner = %"Brawler Spawner"
|
||||
if brawler_spawner != null:
|
||||
brawler_spawner.spawn_host_avatar = false
|
||||
host()
|
||||
|
||||
func host():
|
||||
if Noray.local_port <= 0:
|
||||
return ERR_UNCONFIGURED
|
||||
|
||||
Reference in New Issue
Block a user