Hotfix entitystorage (#19206)
This commit is contained in:
@@ -395,7 +395,7 @@ public abstract class SharedEntityStorageSystem : EntitySystem
|
|||||||
|
|
||||||
var targetIsMob = HasComp<BodyComponent>(toInsert);
|
var targetIsMob = HasComp<BodyComponent>(toInsert);
|
||||||
var storageIsItem = HasComp<ItemComponent>(container);
|
var storageIsItem = HasComp<ItemComponent>(container);
|
||||||
var allowedToEat = whitelist?.IsValid(toInsert) ?? storageIsItem;
|
var allowedToEat = whitelist?.IsValid(toInsert) ?? HasComp<ItemComponent>(toInsert);
|
||||||
|
|
||||||
// BEFORE REPLACING THIS WITH, I.E. A PROPERTY:
|
// BEFORE REPLACING THIS WITH, I.E. A PROPERTY:
|
||||||
// Make absolutely 100% sure you have worked out how to stop people ending up in backpacks.
|
// Make absolutely 100% sure you have worked out how to stop people ending up in backpacks.
|
||||||
|
|||||||
Reference in New Issue
Block a user