Null reference fixes

This commit is contained in:
Regalis
2017-05-29 18:41:56 +03:00
parent 52daeea109
commit 9281795866
4 changed files with 5 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ namespace Barotrauma
item.ApplyStatusEffects(ActionType.OnFire, 1.0f);
if (item.Condition <= 0.0f)
if (item.Condition <= 0.0f && GameMain.Server != null)
{
GameMain.Server.CreateEntityEvent(item, new object[] { NetEntityEvent.Type.ApplyStatusEffect, ActionType.OnFire });
}