mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
Zero fall velocity when going through end portals
https://github.com/BentoBoxWorld/BentoBox/issues/1118
This commit is contained in:
parent
6ac51453a0
commit
ac850907cc
@ -129,6 +129,7 @@ public class PortalTeleportationListener implements Listener {
|
||||
// Else other worlds teleport to the end
|
||||
// Set player's velocity to zero
|
||||
e.getPlayer().setVelocity(new Vector(0,0,0));
|
||||
e.getPlayer().setFallDistance(0);
|
||||
// Teleport
|
||||
new SafeSpotTeleport.Builder(plugin)
|
||||
.entity(e.getPlayer())
|
||||
|
Loading…
Reference in New Issue
Block a user