RespawnPacket being sent to client with wrong data
bloodmc opened this issue ยท 0 comments
As you can see on this line, you are sending a packet with source world rather than target. The player's world object wouldn't have changed by this point.
The correct line should be
player.connection.sendPacket(new SPacketRespawn(player.dimension, newWorld.getDifficulty(), newWorld.getWorldInfo().getTerrainType(), player.interactionManager.getGameType()));