NetherPortalFix

NetherPortalFix

68M Downloads

RespawnPacket being sent to client with wrong data

bloodmc opened this issue ยท 0 comments

commented

https://github.com/blay09/NetherPortalFix/blob/1.12/src/main/java/net/blay09/mods/netherportalfix/NetherPortalFix.java#L113

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()));