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()) {
|
if (e.getClickedBlock().isPresent()) {
|
||||||
Block b = e.getClickedBlock().get().getRelative(e.getClickedFace());
|
Block b = e.getClickedBlock().get().getRelative(e.getClickedFace());
|
||||||
Location l = b.getLocation();
|
Location l = b.getLocation();
|
||||||
Location locationWithYaw = new Location(
|
l.setYaw(e.getPlayer().getLocation().getYaw());
|
||||||
l.getWorld(), l.getX(), l.getY(), l.getZ(), e.getPlayer().getLocation().getYaw(), 0.0f
|
Slimefun.getGPSNetwork().createWaypoint(e.getPlayer(), l);
|
||||||
);
|
|
||||||
Slimefun.getGPSNetwork().createWaypoint(e.getPlayer(), locationWithYaw);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user