English OBT + Bugfixes (#1029)
* ts * Test - without spawning at all * Update coffin.yml * Update CP14UniqueLootSystem.cs
This commit is contained in:
@@ -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: "Сервер");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user