Fix tiledef reloads AKA void planet (#23864)

(cherry picked from commit cd1ef71e31ebdb5d335c55755d3df9789b1f21c3)
This commit is contained in:
metalgearsloth 2024-01-10 23:28:42 +11:00 committed by Debug
parent 75e6237060
commit 8a2f414ef2
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 4 additions and 0 deletions

View File

@ -83,8 +83,12 @@ namespace Content.Shared.Entry
private void PrototypeReload(PrototypesReloadedEventArgs obj)
{
/* I am leaving this here commented out to re-iterate
- our game is shitcode
- tiledefmanager no likey proto reloads and you must re-assign the tile ids.
if (!obj.WasModified<ContentTileDefinition>())
return;
*/
// Need to re-allocate tiledefs due to how prototype reloads work
foreach (var def in _prototypeManager.EnumeratePrototypes<ContentTileDefinition>())