fix(core): Fix bad world save state (#462)
This commit is contained in:
parent
97aa092f17
commit
657233b2eb
1 changed files with 3 additions and 3 deletions
|
|
@ -661,7 +661,7 @@ namespace Server
|
|||
{
|
||||
default: // Not Running
|
||||
{
|
||||
throw new Exception($"Added {typeof(T).Name} before world load.\n");
|
||||
throw new Exception($"Added {entity.GetType().Name} before world load.\n");
|
||||
}
|
||||
case WorldState.Saving:
|
||||
{
|
||||
|
|
@ -674,7 +674,7 @@ namespace Server
|
|||
if (_pendingDelete.Remove(entity.Serial))
|
||||
{
|
||||
Utility.PushColor(ConsoleColor.Red);
|
||||
WriteConsoleLine($"Deleted then added {typeof(T).Name} during {WorldState.ToString().ToLower()} state.");
|
||||
WriteConsoleLine($"Deleted then added {entity.GetType().Name} during {WorldState.ToString()} state.");
|
||||
Utility.PopColor();
|
||||
}
|
||||
_pendingAdd[entity.Serial] = entity;
|
||||
|
|
@ -704,7 +704,7 @@ namespace Server
|
|||
{
|
||||
default: // Not Running
|
||||
{
|
||||
throw new Exception($"Removed {typeof(T).Name} before world load.\n");
|
||||
throw new Exception($"Removed {entity.GetType().Name} before world load.\n");
|
||||
}
|
||||
case WorldState.Saving:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue