* add: prototypes for silo and silo ports

* add: ShitSilo

* fix: remove useless components

* fix: fix material storage system

* git commit

* fix: it just works

* fix: fix unsupported grids

* add: all standart maps support

* fix: fix material whitelist

* fix: add missing maps

* cleanup and fix

* standardization
This commit is contained in:
ThereDrD0
2024-03-13 19:59:05 +03:00
committed by GitHub
parent a8222b0502
commit 065787d0e6
25 changed files with 126 additions and 20 deletions

View File

@@ -43,8 +43,15 @@ public sealed partial class MaterialStorageControl : BoxContainer
return;
}
var gridStorage = _entityManager.TryGetComponent<TransformComponent>(_owner, out var transformComponent) &&
_entityManager.TryGetComponent<MaterialStorageComponent>(transformComponent.GridUid,
out var materialStorageComponent) ? materialStorageComponent : null;
materialStorage = gridStorage ?? materialStorage;
var canEject = materialStorage.CanEjectStoredMaterials;
var mats = materialStorage.Storage.Select(pair => (pair.Key.Id, pair.Value)).ToDictionary();
if (_currentMaterials.Equals(mats))
return;