bugfix - Restore wireless networks so they're not broken

This commit is contained in:
Marek Wolan
2025-02-05 15:11:04 +00:00
parent c1abbfe58c
commit 09bdfa3ae1

View File

@@ -271,7 +271,7 @@ class PrimaiteGame:
if n_type in Node._registry:
n_class = Node._registry[n_type]
if issubclass(n_class, WirelessRouter):
new_node = n_class(config=n_class.ConfigSchema(**node_cfg), airspace=net.airspace)
new_node = n_class.from_config(config=node_cfg, airspace=net.airspace)
else:
new_node = Node._registry[n_type].from_config(config=node_cfg)
else: