Zero fall velocity when going through end portals

https://github.com/BentoBoxWorld/BentoBox/issues/1118
This commit is contained in:
tastybento 2020-01-22 14:43:32 -08:00
parent 6ac51453a0
commit ac850907cc

View File

@ -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())