Version 0.8.1

Fixes bug regarding actors and player sessions on RELEASE.
This commit is contained in:
Vera Aguilera Puerto
2021-12-09 14:52:51 +01:00
parent 2fd15b0375
commit 374e80aad3
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
<Project>
<!-- This file automatically reset by Tools/version.py -->
<PropertyGroup><Version>0.8.0</Version></PropertyGroup>
<PropertyGroup><Version>0.8.1</Version></PropertyGroup>
</Project>

View File

@@ -51,7 +51,7 @@ namespace Robust.Server.GameObjects
forceKicked = null;
// Cannot attach to a deleted/nonexisting entity.
if (!EntityManager.EntityExists(uid))
if (!EntityManager.Deleted(uid))
{
return false;
}

View File

@@ -140,7 +140,7 @@ namespace Robust.Server.Player
return;
#if EXCEPTION_TOLERANCE
if (!IoCManager.Resolve<IEntityManager>().Deleted(AttachedEntity!.Value))
if (IoCManager.Resolve<IEntityManager>().Deleted(AttachedEntity!.Value))
{
Logger.Warning($"Player \"{this}\" was attached to an entity that was deleted. THIS SHOULD NEVER HAPPEN, BUT DOES.");
// We can't contact ActorSystem because trying to fire an entity event would crash.