entity storage tweaks (#19182)

This commit is contained in:
Nemanja
2023-08-15 18:49:30 -04:00
committed by GitHub
parent 87b774209f
commit b8250f9601
6 changed files with 18 additions and 8 deletions

View File

@@ -210,6 +210,9 @@ internal sealed class ChargerSystem : EntitySystem
if (!receiverComponent.Powered)
return;
if (component.Whitelist?.IsValid(targetEntity, EntityManager) == false)
return;
if (!SearchForBattery(targetEntity, out var heldBattery))
return;