This commit is contained in:
Evil Factory
2022-01-13 12:41:56 -03:00
13 changed files with 22 additions and 9 deletions
@@ -323,9 +323,10 @@ namespace Barotrauma
}
break;
case 1: //NetEntityEvent.Type.Control
bool myCharacter = msg.ReadBoolean();
byte ownerID = msg.ReadByte();
ResetNetState();
if (ownerID == GameMain.Client.ID)
if (myCharacter)
{
if (controlled != null)
{