From a358a3caaee2a4781f910cfb440bd822ae73a7e5 Mon Sep 17 00:00:00 2001 From: Loki Rautio Date: Mon, 9 Mar 2026 04:46:56 -0500 Subject: Revert accidentally pushed "LCEMP RCE fixes" This reverts commit d557ca2dfba5ffcca99ceb41b07d149f871964b5. --- Minecraft.World/RemoveEntitiesPacket.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Minecraft.World/RemoveEntitiesPacket.cpp') diff --git a/Minecraft.World/RemoveEntitiesPacket.cpp b/Minecraft.World/RemoveEntitiesPacket.cpp index 4c5e3313..609cfa77 100644 --- a/Minecraft.World/RemoveEntitiesPacket.cpp +++ b/Minecraft.World/RemoveEntitiesPacket.cpp @@ -21,9 +21,7 @@ RemoveEntitiesPacket::~RemoveEntitiesPacket() void RemoveEntitiesPacket::read(DataInputStream *dis) //throws IOException { - int count = dis->readByte(); - if(count < 0) count = 0; - ids = intArray(count); + ids = intArray(dis->readByte()); for(unsigned int i = 0; i < ids.length; ++i) { ids[i] = dis->readInt(); -- cgit v1.2.3