aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/SynchedEntityData.cpp
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-09 04:46:56 -0500
committerLoki Rautio <lokirautio@gmail.com>2026-03-09 04:46:56 -0500
commita358a3caaee2a4781f910cfb440bd822ae73a7e5 (patch)
tree638ff44db51c8e27826e56bacb5af764f98ef2d0 /Minecraft.World/SynchedEntityData.cpp
parentd557ca2dfba5ffcca99ceb41b07d149f871964b5 (diff)
Revert accidentally pushed "LCEMP RCE fixes"
This reverts commit d557ca2dfba5ffcca99ceb41b07d149f871964b5.
Diffstat (limited to 'Minecraft.World/SynchedEntityData.cpp')
-rw-r--r--Minecraft.World/SynchedEntityData.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Minecraft.World/SynchedEntityData.cpp b/Minecraft.World/SynchedEntityData.cpp
index 67b9597b..69d419b0 100644
--- a/Minecraft.World/SynchedEntityData.cpp
+++ b/Minecraft.World/SynchedEntityData.cpp
@@ -342,10 +342,7 @@ vector<shared_ptr<SynchedEntityData::DataItem> > *SynchedEntityData::unpack(Data
int currentHeader = input->readByte();
- int itemCount = 0;
- const int MAX_ENTITY_DATA_ITEMS = 256;
-
- while (currentHeader != EOF_MARKER && itemCount < MAX_ENTITY_DATA_ITEMS)
+ while (currentHeader != EOF_MARKER)
{
if (result == nullptr)
@@ -400,7 +397,6 @@ vector<shared_ptr<SynchedEntityData::DataItem> > *SynchedEntityData::unpack(Data
break;
}
result->push_back(item);
- itemCount++;
currentHeader = input->readByte();
}