aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/PressurePlateTile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/PressurePlateTile.cpp')
-rw-r--r--Minecraft.World/PressurePlateTile.cpp5
1 files changed, 2 insertions, 3 deletions
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<Entity> e = *it;
+ for (auto& e : *entities)
+ {
if (!e->isIgnoringTileTriggers())
{
if (sensitivity != everything) delete entities;