From 8ad64c4f99f1ccebdad1cfd7c0248f2160346119 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 5 May 2019 09:30:44 +1000 Subject: [PATCH] SPIGOT-4867: Incorrect dimension ID for nether portal teleports --- nms-patches/EntityPlayer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch index 9a6ad5a94d..26e39f7707 100644 --- a/nms-patches/EntityPlayer.patch +++ b/nms-patches/EntityPlayer.patch @@ -415,7 +415,7 @@ + // CraftBukkit start + this.dimension = dimensionmanager; + -+ this.playerConnection.sendPacket(new PacketPlayOutRespawn(dimensionmanager, this.world.getWorldData().getType(), this.playerInteractManager.getGameMode())); ++ this.playerConnection.sendPacket(new PacketPlayOutRespawn(worldserver1.worldProvider.getDimensionManager(), this.world.getWorldData().getType(), this.playerInteractManager.getGameMode())); + this.playerConnection.sendPacket(new PacketPlayOutServerDifficulty(this.world.getDifficulty(), this.world.getWorldData().isDifficultyLocked())); + PlayerList playerlist = this.server.getPlayerList(); +