Skip to content

Commit

Permalink
Fix travelling between dimensions by command. (Closes #1512)
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Oct 9, 2024
1 parent 35bf457 commit 97e6107
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,6 @@ public ServerPlayer respawn(ServerPlayer entityplayer, boolean flag, Entity.Remo
}

public ServerPlayer respawn(ServerPlayer playerIn, boolean flag, Entity.RemovalReason removalReason, PlayerRespawnEvent.RespawnReason respawnReason, Location location) {
if (true) { // TODO remove on next update
arclight$respawnReason = respawnReason;
arclight$loc = location;
return this.respawn(playerIn, flag, removalReason);
}
if (respawnReason == null && location != null) {
// TODO
if (bridge$platform$onTravelToDimension(playerIn, ((CraftWorld) location.getWorld()).getHandle().dimension)) {
Expand Down

0 comments on commit 97e6107

Please sign in to comment.