Fix chunk desync on S.C.A.M.P.E.R. warp

This commit is contained in:
Gent S 2020-11-25 17:46:16 -05:00
parent 71d9cab72e
commit f91f9786d1

View File

@ -142,6 +142,7 @@ void TransportManager::transportWarpHandler(CNSocket* sock, CNPacketData* data)
switch (route.type) { switch (route.type) {
case 1: // S.C.A.M.P.E.R. case 1: // S.C.A.M.P.E.R.
target = Locations[route.end]; target = Locations[route.end];
ChunkManager::updatePlayerChunk(sock, plr->chunkPos, std::make_tuple(0, 0, 0)); // force player to reload chunks
PlayerManager::updatePlayerPosition(sock, target.x, target.y, target.z, INSTANCE_OVERWORLD, plr->angle); PlayerManager::updatePlayerPosition(sock, target.x, target.y, target.z, INSTANCE_OVERWORLD, plr->angle);
break; break;
case 2: // Monkey Skyway case 2: // Monkey Skyway