English OBT + Bugfixes (#1029)

* ts

* Test - without spawning at all

* Update coffin.yml

* Update CP14UniqueLootSystem.cs
This commit is contained in:
Ed
2025-03-15 20:12:38 +03:00
committed by GitHub
parent 41f33bf005
commit ff98037854
8 changed files with 28 additions and 22 deletions

View File

@@ -50,11 +50,6 @@ public sealed partial class CP14RoundEndSystem
_ticker.TogglePause();
}
if (nowMoscow.Hour == 17 && nowMoscow.Minute == 45)
{
_consoleHost.ExecuteCommand("shutdown"); //Restart server, load updates and other
}
if (nowMoscow.Hour == 20 && nowMoscow.Minute == 45)
{
_chatSystem.DispatchGlobalAnnouncement("ВНИМАНИЕ: Сервер автоматически завершит раунд через 15 минут", announcementSound: new SoundPathSpecifier("/Audio/Effects/beep1.ogg"), sender: "Сервер");

View File

@@ -32,8 +32,12 @@ public sealed partial class CP14UniqueLootSystem : EntitySystem
if (loot == null)
return;
if (!Deleted(ent))
SpawnAtPosition(loot, Transform(ent).Coordinates);
if (TerminatingOrDeleted(ent) || !Exists(ent))
return;
var coords = Transform(ent).Coordinates;
EntityManager.SpawnEntity(loot, coords);
}