From 27db2569029b0288b70b27668903003372ff51e7 Mon Sep 17 00:00:00 2001 From: edmand46 Date: Sun, 3 Sep 2023 13:29:37 +0300 Subject: [PATCH] :bug: scene entities not execute buffered events --- Ragon.Server/Sources/Entity/RagonEntity.cs | 1 - Ragon.Server/Sources/Handler/SceneLoadedOperation.cs | 1 + Ragon.Server/Sources/RagonServerConfiguration.cs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ragon.Server/Sources/Entity/RagonEntity.cs b/Ragon.Server/Sources/Entity/RagonEntity.cs index a487bd1..9331821 100644 --- a/Ragon.Server/Sources/Entity/RagonEntity.cs +++ b/Ragon.Server/Sources/Entity/RagonEntity.cs @@ -162,7 +162,6 @@ public class RagonEntity : IRagonEntity if (Authority == RagonAuthority.OwnerOnly && Owner.Connection.Id != caller.Connection.Id) { - Console.WriteLine($"Player have not enough authority for event with Id {evnt.EventCode}"); return; } diff --git a/Ragon.Server/Sources/Handler/SceneLoadedOperation.cs b/Ragon.Server/Sources/Handler/SceneLoadedOperation.cs index a037e72..865f6bc 100644 --- a/Ragon.Server/Sources/Handler/SceneLoadedOperation.cs +++ b/Ragon.Server/Sources/Handler/SceneLoadedOperation.cs @@ -56,6 +56,7 @@ public sealed class SceneLoadedOperation : IRagonOperation Authority = eventAuthority, AttachId = 0, StaticId = staticId, + BufferedEvents = context.Configuration.LimitBufferedEvents, }; var entity = new RagonEntity(entityParameters); diff --git a/Ragon.Server/Sources/RagonServerConfiguration.cs b/Ragon.Server/Sources/RagonServerConfiguration.cs index c9971bb..c37b572 100644 --- a/Ragon.Server/Sources/RagonServerConfiguration.cs +++ b/Ragon.Server/Sources/RagonServerConfiguration.cs @@ -47,7 +47,7 @@ public struct RagonServerConfiguration public Dictionary WebHooks; private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); - private static readonly string ServerVersion = "1.2.0-rc"; + private static readonly string ServerVersion = "1.2.9-rc"; private static Dictionary _serverTypes = new Dictionary() { {"enet", Server.ServerType.ENET},