Fix Build

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-05-16 13:54:37 +02:00
parent c04dc8fd86
commit 5fb51b63c3
20 changed files with 97 additions and 106 deletions
@@ -36,7 +36,7 @@ import lombok.Data;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer;
import org.bukkit.craftbukkit.entity.CraftPlayer;
import org.bukkit.entity.Player;
import java.util.ArrayList;
@@ -128,7 +128,7 @@ public class PortalCommand extends SWCommand {
private Location locationOfPlayer(Player player) {
Location l = player.getLocation();
l.setYaw(((CraftPlayer)player).getHandle().cm());
l.setYaw(((CraftPlayer)player).getHandle().getYHeadRot());
return l;
}
@@ -189,6 +189,6 @@ public class PortalCommand extends SWCommand {
}
private Location adapt(World world, BlockVector3 blockVector3) {
return new Location(world, blockVector3.getBlockX() + 0.5, blockVector3.getBlockY(), blockVector3.getBlockZ() + 0.5);
return new Location(world, blockVector3.x() + 0.5, blockVector3.y(), blockVector3.z() + 0.5);
}
}