From 632449b6c48da3c7c96a430fdb95c1d8b3b873df Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 7 Sep 2018 07:14:59 +1000 Subject: [PATCH] SPIGOT-4349: End portal has wrong TeleportCause --- 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 12687b42e3..7bc816c188 100644 --- a/nms-patches/EntityPlayer.patch +++ b/nms-patches/EntityPlayer.patch @@ -351,7 +351,7 @@ - this.server.getPlayerList().a(this, dimensionmanager); + // CraftBukkit start -+ TeleportCause cause = (this.dimension == DimensionManager.THE_END || i == DimensionManager.THE_END) ? TeleportCause.END_PORTAL : TeleportCause.NETHER_PORTAL; ++ TeleportCause cause = (this.dimension == DimensionManager.THE_END || dimensionmanager == DimensionManager.THE_END) ? TeleportCause.END_PORTAL : TeleportCause.NETHER_PORTAL; + this.server.getPlayerList().changeDimension(this, dimensionmanager, cause); // PAIL: check all this + // CraftBukkit end this.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1032, BlockPosition.ZERO, 0, false));