Make EscapeInventorySystem respect Unremovable (fix glued hamster deletion) (#24488)
* Made EscapeInventorySystem respect Unremovable * Oh look, there's a helper method * Let's fix this too
This commit is contained in:
@@ -99,7 +99,8 @@ public sealed class GlueSystem : SharedGlueSystem
|
||||
|
||||
private void OnHandPickUp(Entity<GluedComponent> entity, ref GotEquippedHandEvent args)
|
||||
{
|
||||
EnsureComp<UnremoveableComponent>(entity);
|
||||
var comp = EnsureComp<UnremoveableComponent>(entity);
|
||||
comp.DeleteOnDrop = false;
|
||||
entity.Comp.Until = _timing.CurTime + entity.Comp.Duration;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user