This commit is contained in:
Mikhail 2024-03-10 21:47:28 +08:00
parent c680252868
commit 440ede60d4
2 changed files with 4 additions and 1 deletions

View File

@ -167,7 +167,10 @@ namespace DCFApixels.DragonECS
}
if(id == NULL_WORLD_ID)
{
#if (DEBUG && !DISABLE_DEBUG)
Throw.World_WorldCantBeDestroyed();
#endif
return;
}
_listeners.InvokeOnWorldDestroy();
_entityDispenser = null;

View File

@ -131,7 +131,7 @@ namespace DCFApixels.DragonECS
}
private sealed class NullWorld : EcsWorld
{
internal NullWorld() : base(ConfigContainer.Empty, 0) { }
internal NullWorld() : base(new EcsWorldConfig(4, 4, 4, 4, 4), 0) { }
}
}
}