1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
test137e29b 2023-11-11 00:43:31 +00:00
parent 9135b3810e
commit c8cb6ff750

View File

@ -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);
}
};
}