From 55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b Mon Sep 17 00:00:00 2001 From: void_17 <61356189+void2012@users.noreply.github.com> Date: Fri, 6 Mar 2026 02:11:18 +0700 Subject: Remove AUTO_VAR macro and _toString function (#592) --- Minecraft.World/PlayGoal.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Minecraft.World/PlayGoal.cpp') diff --git a/Minecraft.World/PlayGoal.cpp b/Minecraft.World/PlayGoal.cpp index a3760862..72ee69d4 100644 --- a/Minecraft.World/PlayGoal.cpp +++ b/Minecraft.World/PlayGoal.cpp @@ -27,10 +27,8 @@ bool PlayGoal::canUse() vector > *children = mob->level->getEntitiesOfClass(typeid(Villager), mob->bb->grow(6, 3, 6)); double closestDistSqr = Double::MAX_VALUE; - //for (Entity c : children) - for(AUTO_VAR(it, children->begin()); it != children->end(); ++it) + for(auto& c : *children) { - shared_ptr c = *it; if (c.get() == mob) continue; shared_ptr friendV = dynamic_pointer_cast(c); if (friendV->isChasing()) continue; -- cgit v1.2.3