Clothing/item ECS & cleanup (#9706)
This commit is contained in:
@@ -305,10 +305,10 @@ public sealed class EntityStorageSystem : EntitySystem
|
||||
return false;
|
||||
|
||||
var targetIsMob = HasComp<SharedBodyComponent>(toInsert);
|
||||
var storageIsItem = HasComp<SharedItemComponent>(container);
|
||||
var storageIsItem = HasComp<ItemComponent>(container);
|
||||
|
||||
var allowedToEat = whitelist == null
|
||||
? HasComp<SharedItemComponent>(toInsert)
|
||||
? HasComp<ItemComponent>(toInsert)
|
||||
: whitelist.IsValid(toInsert);
|
||||
|
||||
// BEFORE REPLACING THIS WITH, I.E. A PROPERTY:
|
||||
|
||||
Reference in New Issue
Block a user