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:
2026-07-02 23:05:51 -04:00
parent 70105d8b68
commit 00bb8a21d2
2 changed files with 7 additions and 19 deletions
@@ -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