From 5e2666fbd548b8c66ea6518bef200a594ef838e1 Mon Sep 17 00:00:00 2001 From: SergoDobro Date: Fri, 16 Aug 2024 23:50:59 +0300 Subject: [PATCH] bug fix --- ZoFo/GameCore/GameObjects/GameObject.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ZoFo/GameCore/GameObjects/GameObject.cs b/ZoFo/GameCore/GameObjects/GameObject.cs index 01dce1b..23b5372 100644 --- a/ZoFo/GameCore/GameObjects/GameObject.cs +++ b/ZoFo/GameCore/GameObjects/GameObject.cs @@ -19,9 +19,7 @@ public abstract class GameObject #region ServerSide public GameObject(Vector2 position) { - this.position = position; - server = new Server(); - server.RegisterGameObject(this); + this.position = position; graphicsComponent.LoadContent(); }