aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ContainerSetContentPacket.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/ContainerSetContentPacket.cpp
parentd557ca2dfba5ffcca99ceb41b07d149f871964b5 (diff)
Revert accidentally pushed "LCEMP RCE fixes"
This reverts commit d557ca2dfba5ffcca99ceb41b07d149f871964b5.
Diffstat (limited to 'Minecraft.World/ContainerSetContentPacket.cpp')
-rw-r--r--Minecraft.World/ContainerSetContentPacket.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Minecraft.World/ContainerSetContentPacket.cpp b/Minecraft.World/ContainerSetContentPacket.cpp
index 28ce64e9..ae76e0f0 100644
--- a/Minecraft.World/ContainerSetContentPacket.cpp
+++ b/Minecraft.World/ContainerSetContentPacket.cpp
@@ -32,9 +32,6 @@ void ContainerSetContentPacket::read(DataInputStream *dis) //throws IOException
{
containerId = dis->readByte();
int count = dis->readShort();
-
- if (count < 0 || count > 256) count = 0;
-
items = ItemInstanceArray(count);
for (int i = 0; i < count; i++)
{