fixed: checking owner
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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<string, ServerType> _serverTypes = new Dictionary<string, ServerType>()
|
||||
{
|
||||
{"enet", Server.ServerType.ENET},
|
||||
|
||||
Reference in New Issue
Block a user