mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 00:50:41 +01:00
SPIGOT-4349: End portal has wrong TeleportCause
This commit is contained in:
parent
3eb8af2340
commit
632449b6c4
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue