Skip to content

Commit

Permalink
✨ Coordinate consistency with F3 Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
fantomitechno committed Jan 3, 2024
1 parent 7746b1f commit 45e7088
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public InteractionResult use(BlockState state, Level world, BlockPos pos, Player
BlockPos compassPos = NbtUtils.readBlockPos(itemStack.getTag().getCompound("LodestonePos"));
Component name = itemStack.getHoverName();
if (name.equals(Items.COMPASS.getName(itemStack))) {
name = Component.literal(compassPos.getX() + "/" + compassPos.getY() + "/" + compassPos.getZ());
name = Component.literal(compassPos.getX() + " / " + compassPos.getY() + " / " + compassPos.getZ());
}

if (name.equals(Component.literal("null"))) {
Expand Down

0 comments on commit 45e7088

Please sign in to comment.