mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Fix bad ordering in the PlaceBlockPacket.
This commit is contained in:
@@ -211,8 +211,6 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, MovePlayer
|
||||
|
||||
void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, PlaceBlockPacket* packet)
|
||||
{
|
||||
puts_ignorable("PlaceBlockPacket");
|
||||
|
||||
Mob* pMob = (Mob*)m_pLevel->getEntity(packet->m_playerID);
|
||||
if (!pMob)
|
||||
return;
|
||||
@@ -223,6 +221,8 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, PlaceBlock
|
||||
int y = packet->m_y;
|
||||
int z = packet->m_z;
|
||||
|
||||
printf_ignorable("PlaceBlockPacket: %d", tile);
|
||||
|
||||
if (!m_pLevel->mayPlace(tile, x, y, z, true))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user