Closed bloodmc closed 7 years ago
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()));
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