From 043523d7121af16ed18bc259ffe0f26c590ba326 Mon Sep 17 00:00:00 2001 From: edmand46 Date: Sat, 25 Mar 2023 20:52:36 +0400 Subject: [PATCH] fixed: checking owner --- Ragon.Server/Sources/Handler/EntityStateOperation.cs | 2 +- Ragon.Server/Sources/RagonServerConfiguration.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ragon.Server/Sources/Handler/EntityStateOperation.cs b/Ragon.Server/Sources/Handler/EntityStateOperation.cs index 119ee07..c463e77 100644 --- a/Ragon.Server/Sources/Handler/EntityStateOperation.cs +++ b/Ragon.Server/Sources/Handler/EntityStateOperation.cs @@ -31,7 +31,7 @@ public sealed class EntityStateOperation: IRagonOperation for (var entityIndex = 0; entityIndex < entitiesCount; entityIndex++) { var entityId = reader.ReadUShort(); - if (room.Entities.TryGetValue(entityId, out var entity)) + if (room.Entities.TryGetValue(entityId, out var entity) && entity.Owner.Connection.Id == context.Connection.Id) { entity.State.Read(reader); room.Track(entity); diff --git a/Ragon.Server/Sources/RagonServerConfiguration.cs b/Ragon.Server/Sources/RagonServerConfiguration.cs index 5c55ddd..e362e2c 100644 --- a/Ragon.Server/Sources/RagonServerConfiguration.cs +++ b/Ragon.Server/Sources/RagonServerConfiguration.cs @@ -38,7 +38,7 @@ public struct Configuration public int LimitRooms; private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); - private static readonly string ServerVersion = "1.1.0-rc"; + private static readonly string ServerVersion = "1.1.3-rc"; private static Dictionary _serverTypes = new Dictionary() { {"enet", Server.ServerType.ENET},