refactor(Minecraft.World): Implement LCEMP changes.
This commit is contained in:
@@ -265,10 +265,11 @@ void Packet::updatePacketStatsPIX()
|
||||
#endif
|
||||
}
|
||||
|
||||
shared_ptr<Packet> Packet::getPacket(int id)
|
||||
{
|
||||
// 4J: Removed try/catch
|
||||
return idToCreateMap[id]();
|
||||
shared_ptr<Packet> Packet::getPacket(int id)
|
||||
{
|
||||
auto it = idToCreateMap.find(id);
|
||||
if (it == idToCreateMap.end()) return nullptr;
|
||||
return it->second();
|
||||
}
|
||||
|
||||
void Packet::writeBytes(DataOutputStream *dataoutputstream, byteArray bytes)
|
||||
|
||||
Reference in New Issue
Block a user