Skip to content

Commit

Permalink
Replace more
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Aug 12, 2024
1 parent 94e248d commit cf8225c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/dev/geco/gsit/manager/PoseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/dev/geco/gsit/manager/SitManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit cf8225c

Please sign in to comment.