Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Aug 12, 2024
1 parent 7ea138b commit 94e248d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void EDisE(EntityDismountEvent Event) {

Entity bottom = GPM.getPassengerUtil().getBottomEntity(Event.getDismounted());

if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player) io.papermc.lib.PaperLib.teleportAsync(Event.getDismounted(), bottom.getLocation());
if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player) io.papermc.lib.PaperLib.teleportAsync(Event.getEntity(), bottom.getLocation());

GPM.getPlayerSitManager().stopPlayerSit(Event.getDismounted(), GetUpReason.GET_UP);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void EDisE(EntityDismountEvent Event) {

Entity bottom = GPM.getPassengerUtil().getBottomEntity(Event.getDismounted());

if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player) io.papermc.lib.PaperLib.teleportAsync(Event.getDismounted(), bottom.getLocation());
if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player) io.papermc.lib.PaperLib.teleportAsync(Event.getEntity(), bottom.getLocation());

GPM.getPlayerSitManager().stopPlayerSit(Event.getDismounted(), GetUpReason.GET_UP);

Expand Down

0 comments on commit 94e248d

Please sign in to comment.