aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/StitchSlot.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/StitchSlot.cpp
parent9370cbc7d878df1615d8ce76bc459e8b414d0f19 (diff)
parenteed770b121aa4ce38f002db042d0137c24c6d344 (diff)
Merge branch 'smartcmd:main' into main
Diffstat (limited to 'Minecraft.Client/StitchSlot.cpp')
-rw-r--r--Minecraft.Client/StitchSlot.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/Minecraft.Client/StitchSlot.cpp b/Minecraft.Client/StitchSlot.cpp
index 5e9700b0..cdce6128 100644
--- a/Minecraft.Client/StitchSlot.cpp
+++ b/Minecraft.Client/StitchSlot.cpp
@@ -120,9 +120,8 @@ bool StitchSlot::add(TextureHolder *textureHolder)
}
//for (final StitchSlot subSlot : subSlots)
- for(AUTO_VAR(it, subSlots->begin()); it != subSlots->end(); ++it)
+ for ( StitchSlot *subSlot : *subSlots )
{
- StitchSlot *subSlot = *it;
if (subSlot->add(textureHolder))
{
return true;
@@ -134,23 +133,15 @@ bool StitchSlot::add(TextureHolder *textureHolder)
void StitchSlot::collectAssignments(vector<StitchSlot *> *result)
{
- if (textureHolder != NULL)
+ if (textureHolder)
{
result->push_back(this);
}
- else if (subSlots != NULL)
+ else if (subSlots)
{
- //for (StitchSlot subSlot : subSlots)
- for(AUTO_VAR(it, subSlots->begin()); it != subSlots->end(); ++it)
+ for(StitchSlot *subSlot : *subSlots)
{
- StitchSlot *subSlot = *it;
subSlot->collectAssignments(result);
}
}
-}
-
-//@Override
-wstring StitchSlot::toString()
-{
- return L"Slot{originX=" + _toString(originX) + L", originY=" + _toString(originY) + L", width=" + _toString(width) + L", height=" + _toString(height) + L", texture=" + _toString(textureHolder) + L", subSlots=" + _toString(subSlots) + L'}';
} \ No newline at end of file