From b447568e4bfc6fe951ec8f786cadb10e4150e049 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 3 Mar 2023 16:27:32 +0100 Subject: [PATCH] Adapt to 1.19.3 --- src/de/steamwar/lobby/command/PortalCommand.java | 4 ++-- src/de/steamwar/lobby/map/CustomMap.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/lobby/command/PortalCommand.java b/src/de/steamwar/lobby/command/PortalCommand.java index 043155a..dbed310 100644 --- a/src/de/steamwar/lobby/command/PortalCommand.java +++ b/src/de/steamwar/lobby/command/PortalCommand.java @@ -15,7 +15,7 @@ import lombok.Data; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.command.CommandSender; -import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer; +import org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer; import org.bukkit.entity.Player; import java.util.ArrayList; @@ -103,7 +103,7 @@ public class PortalCommand extends SWCommand { private Location locationOfPlayer(Player player) { Location l = player.getLocation(); - l.setYaw(((CraftPlayer)player).getHandle().cg()); + l.setYaw(((CraftPlayer)player).getHandle().ck()); return l; } diff --git a/src/de/steamwar/lobby/map/CustomMap.java b/src/de/steamwar/lobby/map/CustomMap.java index 935d722..4be78d8 100644 --- a/src/de/steamwar/lobby/map/CustomMap.java +++ b/src/de/steamwar/lobby/map/CustomMap.java @@ -22,7 +22,7 @@ package de.steamwar.lobby.map; import net.minecraft.world.level.saveddata.maps.WorldMap; import org.bukkit.Bukkit; import org.bukkit.Material; -import org.bukkit.craftbukkit.v1_19_R1.map.CraftMapView; +import org.bukkit.craftbukkit.v1_19_R2.map.CraftMapView; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.MapMeta;