ProtoProxy: Fixed SpawnMob packet.
This commit is contained in:
parent
034a283a28
commit
e7ba63b43c
@ -2151,7 +2151,7 @@ bool cConnection::HandleServerSpawnExperienceOrbs(void)
|
|||||||
|
|
||||||
bool cConnection::HandleServerSpawnMob(void)
|
bool cConnection::HandleServerSpawnMob(void)
|
||||||
{
|
{
|
||||||
HANDLE_SERVER_PACKET_READ(ReadBEInt, int, EntityID);
|
HANDLE_SERVER_PACKET_READ(ReadVarInt, UInt32, EntityID);
|
||||||
HANDLE_SERVER_PACKET_READ(ReadChar, char, MobType);
|
HANDLE_SERVER_PACKET_READ(ReadChar, char, MobType);
|
||||||
HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosX);
|
HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosX);
|
||||||
HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosY);
|
HANDLE_SERVER_PACKET_READ(ReadBEInt, int, PosY);
|
||||||
@ -2170,7 +2170,7 @@ bool cConnection::HandleServerSpawnMob(void)
|
|||||||
AString HexDump;
|
AString HexDump;
|
||||||
CreateHexDump(HexDump, Metadata.data(), Metadata.size(), 32);
|
CreateHexDump(HexDump, Metadata.data(), Metadata.size(), 32);
|
||||||
Log("Received a PACKET_SPAWN_MOB from the server:");
|
Log("Received a PACKET_SPAWN_MOB from the server:");
|
||||||
Log(" EntityID = %d", EntityID);
|
Log(" EntityID = %u (0x%x)", EntityID, EntityID);
|
||||||
Log(" MobType = %d", MobType);
|
Log(" MobType = %d", MobType);
|
||||||
Log(" Pos = %s", PrintableAbsIntTriplet(PosX, PosY, PosZ).c_str());
|
Log(" Pos = %s", PrintableAbsIntTriplet(PosX, PosY, PosZ).c_str());
|
||||||
Log(" Angles = [%d, %d, %d]", Yaw, Pitch, HeadYaw);
|
Log(" Angles = [%d, %d, %d]", Yaw, Pitch, HeadYaw);
|
||||||
@ -2705,6 +2705,7 @@ bool cConnection::ParseMetadata(cByteBuffer & a_Buffer, AString & a_Metadata)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 6: Length = 12; break; // 3 * int
|
case 6: Length = 12; break; // 3 * int
|
||||||
|
case 7:
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ASSERT(!"Unknown metadata type");
|
ASSERT(!"Unknown metadata type");
|
||||||
|
Loading…
Reference in New Issue
Block a user