mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Don't use teleport for flying navigation
This commit is contained in:
parent
efc41dc492
commit
225ede02ce
@ -8,7 +8,6 @@ import org.bukkit.Material;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@ -161,7 +160,6 @@ public class FlyingAStarNavigationStrategy extends AbstractPathStrategy {
|
||||
float newYaw = current.getYaw() + normalisedTargetYaw;
|
||||
current.setYaw(newYaw);
|
||||
NMS.setHeadYaw(npc.getEntity(), newYaw);
|
||||
npc.teleport(current, TeleportCause.PLUGIN);
|
||||
}
|
||||
parameters.run();
|
||||
plan.run(npc);
|
||||
|
Loading…
Reference in New Issue
Block a user