Closed joaosvc closed 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.
it is not necessary to check the entity type inside the loop, just pass its class in getNearbyEntities
Exemple: getNearbyEntities($boudingBox, ItemEntity::class)