mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 20:38:05 +00:00
refactor: modernize AABB class
This commit is contained in:
@@ -55,9 +55,10 @@ bool NearestAttackableTargetGoal::canUse() {
|
||||
return false;
|
||||
double within = getFollowDistance();
|
||||
|
||||
AABB mob_bb = mob->bb->grow(within, 4, within);
|
||||
std::vector<std::shared_ptr<Entity> >* entities =
|
||||
mob->level->getEntitiesOfClass(
|
||||
targetType, mob->bb->grow(within, 4, within), selector);
|
||||
targetType, &mob_bb, selector);
|
||||
|
||||
bool result = false;
|
||||
if (entities != NULL && !entities->empty()) {
|
||||
|
||||
Reference in New Issue
Block a user