mirror of https://github.com/PaperMC/Paper.git
12 lines
1.1 KiB
Diff
12 lines
1.1 KiB
Diff
--- a/net/minecraft/server/commands/SpreadPlayersCommand.java
|
|
+++ b/net/minecraft/server/commands/SpreadPlayersCommand.java
|
|
@@ -204,7 +203,7 @@
|
|
spreadplayerscommand_position = aspreadplayerscommand_position[j++];
|
|
}
|
|
|
|
- entity.teleportTo(serverlevel, (double) Mth.floor(spreadplayerscommand_position.x) + 0.5D, (double) spreadplayerscommand_position.getSpawnY(serverlevel, i), (double) Mth.floor(spreadplayerscommand_position.z) + 0.5D, Set.of(), entity.getYRot(), entity.getXRot());
|
|
+ entity.teleportTo(level, (double) Mth.floor(commandspreadplayers_a.x) + 0.5D, (double) commandspreadplayers_a.getSpawnY(level, maxHeight), (double) Mth.floor(commandspreadplayers_a.z) + 0.5D, Set.of(), entity.getYRot(), entity.getXRot(), org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.COMMAND); // CraftBukkit - handle teleport reason
|
|
d1 = Double.MAX_VALUE;
|
|
SpreadPlayersCommand.Position[] aspreadplayerscommand_position1 = aspreadplayerscommand_position;
|
|
int k = aspreadplayerscommand_position.length;
|