diff --git a/source/game/StarItemDrop.cpp b/source/game/StarItemDrop.cpp index 3ff0d37..10ba8f5 100644 --- a/source/game/StarItemDrop.cpp +++ b/source/game/StarItemDrop.cpp @@ -180,6 +180,8 @@ RectF ItemDrop::collisionArea() const { } void ItemDrop::update(float dt, uint64_t) { + m_dropAge.update(world()->epochTime()); + if (isMaster()) { if (m_owningEntity.get() != NullEntityId) { updateTaken(true); @@ -217,7 +219,6 @@ void ItemDrop::update(float dt, uint64_t) { m_movementController.tickMaster(dt); m_intangibleTimer.tick(dt); - m_dropAge.update(world()->epochTime()); m_ageItemsTimer.update(world()->epochTime()); if ((m_mode.get() == Mode::Intangible || m_mode.get() == Mode::Available) && m_movementController.atWorldLimit()) @@ -240,7 +241,6 @@ void ItemDrop::update(float dt, uint64_t) { Root::singleton().itemDatabase()->loadItem(m_itemDescriptor.get(), m_item); m_netGroup.tickNetInterpolation(GlobalTimestep); if (m_owningEntity.get() != NullEntityId) { - m_dropAge.update(world()->epochTime()); if (!isMaster() && m_dropAge.elapsedTime() > 1.0f) m_owningEntity.set(NullEntityId); else {