Update StarItemDrop.cpp

This commit is contained in:
Kae 2023-08-20 19:07:30 +10:00
parent d0aa7c1279
commit 78945304b7

View File

@ -263,7 +263,7 @@ void ItemDrop::update(float dt, uint64_t) {
}
bool ItemDrop::shouldDestroy() const {
return m_mode.get() == Mode::Dead || (m_item->empty() && m_mode.get() != Mode::Taken);
return m_mode.get() == Mode::Dead || (m_item->empty() && m_owningEntity.get() == NullEntityId);
}
void ItemDrop::render(RenderCallback* renderCallback) {