aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/AbstractContainerScreen.cpp
diff options
context:
space:
mode:
authorqwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com>2026-03-05 17:17:45 -0600
committerGitHub <noreply@github.com>2026-03-05 17:17:45 -0600
commit0666959d312dc74903f55d1071488a90239330f1 (patch)
tree5c6886f7ec65a7828bc6e34a469514e418bcf78b /Minecraft.Client/AbstractContainerScreen.cpp
parent9370cbc7d878df1615d8ce76bc459e8b414d0f19 (diff)
parenteed770b121aa4ce38f002db042d0137c24c6d344 (diff)
Merge branch 'smartcmd:main' into main
Diffstat (limited to 'Minecraft.Client/AbstractContainerScreen.cpp')
-rw-r--r--Minecraft.Client/AbstractContainerScreen.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/Minecraft.Client/AbstractContainerScreen.cpp b/Minecraft.Client/AbstractContainerScreen.cpp
index 2b3e0837..fbf1331d 100644
--- a/Minecraft.Client/AbstractContainerScreen.cpp
+++ b/Minecraft.Client/AbstractContainerScreen.cpp
@@ -52,12 +52,9 @@ void AbstractContainerScreen::render(int xm, int ym, float a)
glEnable(GL_RESCALE_NORMAL);
Slot *hoveredSlot = NULL;
-
- AUTO_VAR(itEnd, menu->slots->end());
- for (AUTO_VAR(it, menu->slots->begin()); it != itEnd; it++)
- {
- Slot *slot = *it; //menu->slots->at(i);
+ for ( Slot *slot : *menu->slots )
+ {
renderSlot(slot);
if (isHovering(slot, xm, ym))
@@ -150,10 +147,8 @@ void AbstractContainerScreen::renderSlot(Slot *slot)
Slot *AbstractContainerScreen::findSlot(int x, int y)
{
- AUTO_VAR(itEnd, menu->slots->end());
- for (AUTO_VAR(it, menu->slots->begin()); it != itEnd; it++)
+ for (Slot* slot : menu->slots )
{
- Slot *slot = *it; //menu->slots->at(i);
if (isHovering(slot, x, y)) return slot;
}
return NULL;