public override void Update(float deltaTime)
        {
            // Update the gamemode
            if (currentGamemode != null && currentGamemode.IsActive)
            {
                currentGamemode.Update(deltaTime);
            }

            // Update the world
            if (World != null)
            {
                World.Update(deltaTime);
            }

            // Handle gamemode restarts
            if (gameRestarting)
            {
                if (restartTime > 0)
                {
                    restartTime -= deltaTime;
                }
                else
                {
                    gameRestarting = false;
                    ChangeWorld(World.CurrentWorldName);
                }
            }
        }