mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
setYaw
This commit is contained in:
parent
9135b3810e
commit
c8cb6ff750
@ -37,10 +37,8 @@ public class GPSMarkerTool extends SimpleSlimefunItem<ItemUseHandler> implements
|
||||
if (e.getClickedBlock().isPresent()) {
|
||||
Block b = e.getClickedBlock().get().getRelative(e.getClickedFace());
|
||||
Location l = b.getLocation();
|
||||
Location locationWithYaw = new Location(
|
||||
l.getWorld(), l.getX(), l.getY(), l.getZ(), e.getPlayer().getLocation().getYaw(), 0.0f
|
||||
);
|
||||
Slimefun.getGPSNetwork().createWaypoint(e.getPlayer(), locationWithYaw);
|
||||
l.setYaw(e.getPlayer().getLocation().getYaw());
|
||||
Slimefun.getGPSNetwork().createWaypoint(e.getPlayer(), l);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user