mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-27 02:13:52 -07:00
SPIGOT-4349: End portal has wrong TeleportCause
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -351,7 +351,7 @@
|
|||||||
|
|
||||||
- this.server.getPlayerList().a(this, dimensionmanager);
|
- this.server.getPlayerList().a(this, dimensionmanager);
|
||||||
+ // CraftBukkit start
|
+ // 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
|
+ this.server.getPlayerList().changeDimension(this, dimensionmanager, cause); // PAIL: check all this
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
this.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1032, BlockPosition.ZERO, 0, false));
|
this.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1032, BlockPosition.ZERO, 0, false));
|
||||||
|
Reference in New Issue
Block a user