mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Version 0.8.1
Fixes bug regarding actors and player sessions on RELEASE.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user