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/PressurePlateTile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Minecraft.World/PressurePlateTile.cpp') diff --git a/Minecraft.World/PressurePlateTile.cpp b/Minecraft.World/PressurePlateTile.cpp index 6a30819d..beed308a 100644 --- a/Minecraft.World/PressurePlateTile.cpp +++ b/Minecraft.World/PressurePlateTile.cpp @@ -32,9 +32,8 @@ int PressurePlateTile::getSignalStrength(Level *level, int x, int y, int z) if (entities != NULL && !entities->empty()) { - for (AUTO_VAR(it, entities->begin()); it != entities->end(); ++it) - { - shared_ptr e = *it; + for (auto& e : *entities) + { if (!e->isIgnoringTileTriggers()) { if (sensitivity != everything) delete entities; -- cgit v1.2.3