|
@@ -23,7 +23,7 @@ ItemEntity::ItemEntity( Framework::Vec3<float> location, int dimensionId, int en
|
|
|
void ItemEntity::tick( const Dimension* zDimension )
|
|
|
{
|
|
|
Framework::Vec3<float> pos = location;
|
|
|
- // TODO: add speed to next entity with free inventory
|
|
|
+ // add speed to next entity with free inventory
|
|
|
Entity* zOther = Game::INSTANCE->zNearestEntity( currentDimensionId, location, [this]( Entity* zOther ) {
|
|
|
return zOther != this && zOther->numberOfAddableItems( slot->zStack(), NO_DIRECTION );
|
|
|
} );
|