Use ECS prototype-reload events (#22613)
* Use ECS prototype-reload events * better constructors * Maybe this fixes tests?
This commit is contained in:
@@ -83,6 +83,9 @@ namespace Content.Shared.Entry
|
||||
|
||||
private void PrototypeReload(PrototypesReloadedEventArgs obj)
|
||||
{
|
||||
if (!obj.WasModified<ContentTileDefinition>())
|
||||
return;
|
||||
|
||||
// Need to re-allocate tiledefs due to how prototype reloads work
|
||||
foreach (var def in _prototypeManager.EnumeratePrototypes<ContentTileDefinition>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user