JkqzDev / ItemStacker

MIT License
1 stars 0 forks source link

Stack #1

Closed joaosvc closed 1 year ago

joaosvc commented 1 year ago

it is not necessary to check the entity type inside the loop, just pass its class in getNearbyEntities

Exemple: getNearbyEntities($boudingBox, ItemEntity::class)

JkqzDev commented 1 year ago

it is not necessary to check the entity type inside the loop, just pass its class in getNearbyEntities

Exemple: getNearbyEntities($boudingBox, ItemEntity::class)

The second argument to the getNearbyEntities function is to ignore an entity.

https://github.com/pmmp/PocketMine-MP/blob/674b65f789c193cb221027c7f71a37d83074d877/src/world/World.php#L2205