void Environment_ObjectRemoved(MovableObject ob) { if (this.Area.Contains(ob.Location) == false) return; var item = ob as ItemObject; if (item != null && item.StockpiledBy == this) item.StockpiledBy = null; }