Makes more fields VV (#2026)

* Some more VV

* Fixed build & some more gun vvs

* Added VendingMachine Inventory & Items
This commit is contained in:
Exp
2020-09-08 13:30:22 +02:00
committed by GitHub
parent cdf42cf880
commit 5120627ca2
28 changed files with 82 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
[ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10);
[ViewVariables]
private SolutionComponent Solution => _beakerContainer.ContainedEntity.GetComponent<SolutionComponent>();
private SolutionComponent? Solution => _beakerContainer.ContainedEntity?.GetComponent<SolutionComponent>();
private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;