удалил _priseQuery;

This commit is contained in:
Vigers Ray 2024-06-11 06:51:31 +03:00
parent 0c10fee7c1
commit 6e513690d5

View file

@ -9,7 +9,6 @@ namespace Content.Server._Sunrise.DontSellingGrid;
public sealed class StationDontSellingSystems : EntitySystem
{
[Dependency] private readonly EntityLookupSystem _lookup = default!;
private EntityQuery<StaticPriceComponent> _priseQuery;
public override void Initialize()
{
@ -18,8 +17,6 @@ public sealed class StationDontSellingSystems : EntitySystem
SubscribeLocalEvent<StationDontSellingGridComponent, StationPostInitEvent>(OnPostInit);
SubscribeLocalEvent<PlayerSpawnCompleteEvent>(OnPlayerSpawning);
SubscribeLocalEvent<DontSellComponent, PriceCalculationEvent>(OnCalculatePrice);
_priseQuery = GetEntityQuery<StaticPriceComponent>();
}
private void OnCalculatePrice(EntityUid uid, DontSellComponent component, ref PriceCalculationEvent args)