From 1e1259d0a5056bc399f8ae2a794b05d09b007375 Mon Sep 17 00:00:00 2001 From: Sardelka Date: Tue, 12 Jul 2022 17:16:28 +0800 Subject: [PATCH] Fix --- RageCoop.Server/Server.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RageCoop.Server/Server.cs b/RageCoop.Server/Server.cs index a4ab9788..aa2be673 100644 --- a/RageCoop.Server/Server.cs +++ b/RageCoop.Server/Server.cs @@ -37,7 +37,7 @@ public class Server /// The API for controlling server and hooking events. /// public API API { get; private set; } - internal BaseScript BaseScript { get; set; }=new BaseScript(); + internal readonly BaseScript BaseScript; internal readonly ServerSettings Settings; internal NetServer MainNetServer; internal ServerEntities Entities; @@ -76,6 +76,7 @@ public Server(ServerSettings settings,Logger logger=null) Resources=new Resources(this); Security=new Security(Logger); Entities=new ServerEntities(this); + BaseScript=new BaseScript(this); } /// /// Spawn threads and start the server