Fixed ChangeProperty network events
This commit is contained in:
@@ -4,6 +4,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Barotrauma.Items.Components;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
@@ -461,6 +462,11 @@ namespace Barotrauma
|
||||
|
||||
private void TrySendNetworkUpdate(ISerializableEntity entity, SerializableProperty property)
|
||||
{
|
||||
if (entity is ItemComponent)
|
||||
{
|
||||
entity = ((ItemComponent)entity).Item;
|
||||
}
|
||||
|
||||
if (GameMain.Server != null)
|
||||
{
|
||||
IServerSerializable serverSerializable = entity as IServerSerializable;
|
||||
|
||||
Reference in New Issue
Block a user