Skip to content

Commit

Permalink
Fix manoverboard
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Aug 25, 2024
1 parent ceb10e1 commit 590251b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.countercraft.movecraft.events.ManOverboardEvent;
import net.countercraft.movecraft.localisation.I18nSupport;
import net.countercraft.movecraft.util.MathUtils;
import net.countercraft.movecraft.util.ReflectUtils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.command.Command;
Expand Down Expand Up @@ -71,10 +70,11 @@ public boolean onCommand(CommandSender commandSender, Command command, String s,
ManOverboardEvent event = new ManOverboardEvent(craft, telPoint);
Bukkit.getServer().getPluginManager().callEvent(event);

telPoint.setYaw(player.getLocation().getYaw());
telPoint.setPitch(player.getLocation().getPitch());
player.setVelocity(new Vector(0, 0, 0));
player.setFallDistance(0);
// TODO!
// Movecraft.getInstance().getSmoothTeleport().teleport(player, telPoint, 0, 0);
Movecraft.getInstance().getSmoothTeleport().teleport(player, telPoint);
return true;
}

Expand Down

0 comments on commit 590251b

Please sign in to comment.