revenant cleanup (#10662)
This commit is contained in:
@@ -60,15 +60,13 @@ public sealed partial class StoreSystem : EntitySystem
|
||||
{
|
||||
ui = component.Owner.GetUIOrNull(StoreUiKey.Key);
|
||||
if (ui == null)
|
||||
{
|
||||
Logger.Error("No Ui key.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//if we haven't opened it before, initialize the shit
|
||||
if (!component.Opened)
|
||||
{
|
||||
RefreshAllListings(component);
|
||||
InitializeFromPreset(component.Preset, component);
|
||||
component.Opened = true;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,6 @@ public sealed partial class StoreSystem : EntitySystem
|
||||
/// <param name="component">The store being initialized</param>
|
||||
public void InitializeFromPreset(StorePresetPrototype preset, StoreComponent component)
|
||||
{
|
||||
RefreshAllListings(component);
|
||||
component.Preset = preset.ID;
|
||||
component.CurrencyWhitelist.UnionWith(preset.CurrencyWhitelist);
|
||||
component.Categories.UnionWith(preset.Categories);
|
||||
|
||||
Reference in New Issue
Block a user