From cf8225cf650532998d47d475ef05bfe3645207a6 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Tue, 13 Aug 2024 01:43:55 +0800 Subject: [PATCH] Replace more --- core/src/main/java/dev/geco/gsit/manager/PoseManager.java | 2 +- core/src/main/java/dev/geco/gsit/manager/SitManager.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/dev/geco/gsit/manager/PoseManager.java b/core/src/main/java/dev/geco/gsit/manager/PoseManager.java index 88a9e17e..43a2eda8 100644 --- a/core/src/main/java/dev/geco/gsit/manager/PoseManager.java +++ b/core/src/main/java/dev/geco/gsit/manager/PoseManager.java @@ -138,7 +138,7 @@ public boolean removePose(Player Player, GetUpReason Reason, boolean Safe) { returnLocation.setPitch(poseSeat.getPlayer().getLocation().getPitch()); } - if(poseSeat.getPlayer().isValid() && Safe) GPM.getEntityUtil().posEntity(poseSeat.getPlayer(), returnLocation); + if(poseSeat.getPlayer().isValid() && Safe) io.papermc.lib.PaperLib.teleportAsync(poseSeat.getPlayer(), returnLocation); GPM.getEntityUtil().removeSeatEntity(poseSeat.getSeat().getSeatEntity()); diff --git a/core/src/main/java/dev/geco/gsit/manager/SitManager.java b/core/src/main/java/dev/geco/gsit/manager/SitManager.java index dbef89ca..b9f555c4 100644 --- a/core/src/main/java/dev/geco/gsit/manager/SitManager.java +++ b/core/src/main/java/dev/geco/gsit/manager/SitManager.java @@ -140,7 +140,7 @@ public void moveSeat(LivingEntity Entity, BlockFace BlockFace) { seat.setLocation(seat.getLocation().add(BlockFace.getModX(), BlockFace.getModY(), BlockFace.getModZ())); - GPM.getEntityUtil().posEntity(seat.getSeatEntity(), seat.getLocation()); + io.papermc.lib.PaperLib.teleportAsync(seat.getSeatEntity(), seat.getLocation()); } public boolean removeSeat(LivingEntity Entity, GetUpReason Reason) { return removeSeat(Entity, Reason, true); } @@ -171,9 +171,9 @@ public boolean removeSeat(LivingEntity Entity, GetUpReason Reason, boolean Safe) } catch (Throwable ignored) { } } - if(seat.getEntity().isValid() && Safe && GPM.getSVManager().isNewerOrVersion(17, 0)) GPM.getEntityUtil().posEntity(seat.getEntity(), returnLocation); + if(seat.getEntity().isValid() && Safe && GPM.getSVManager().isNewerOrVersion(17, 0)) io.papermc.lib.PaperLib.teleportAsync(seat.getEntity(), returnLocation); - if(seat.getSeatEntity().isValid() && !GPM.getSVManager().isNewerOrVersion(17, 0)) GPM.getEntityUtil().posEntity(seat.getSeatEntity(), returnLocation); + if(seat.getSeatEntity().isValid() && !GPM.getSVManager().isNewerOrVersion(17, 0)) io.papermc.lib.PaperLib.teleportAsync(seat.getSeatEntity(), returnLocation); GPM.getEntityUtil().removeSeatEntity(seat.getSeatEntity());