Fix inventory flickering and missing InventoryTemplateUpdated event (#39379)
* fix flickering * move InitClothing * fix this
This commit is contained in:
@@ -74,7 +74,7 @@ public partial class InventorySystem : EntitySystem
|
||||
Dirty(target, targetComp);
|
||||
}
|
||||
|
||||
private void OnInit(Entity<InventoryComponent> ent, ref ComponentInit args)
|
||||
protected virtual void OnInit(Entity<InventoryComponent> ent, ref ComponentInit args)
|
||||
{
|
||||
UpdateInventoryTemplate(ent);
|
||||
}
|
||||
@@ -111,6 +111,9 @@ public partial class InventorySystem : EntitySystem
|
||||
container.OccludesLight = false;
|
||||
ent.Comp.Containers[i] = container;
|
||||
}
|
||||
|
||||
var ev = new InventoryTemplateUpdated();
|
||||
RaiseLocalEvent(ent, ref ev);
|
||||
}
|
||||
|
||||
private void OnOpenSlotStorage(OpenSlotStorageNetworkMessage ev, EntitySessionEventArgs args)
|
||||
|
||||
Reference in New Issue
Block a user