From 62f7b25fb503bc3c345fca4c4cee827821db42c9 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Mon, 17 Jan 2022 19:01:19 +0000 Subject: [PATCH] Center point markers in their block to match player markers --- src/util/dynmap.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/dynmap.ts b/src/util/dynmap.ts index 3e9ed7d..de2a45b 100644 --- a/src/util/dynmap.ts +++ b/src/util/dynmap.ts @@ -308,9 +308,9 @@ export function buildMarker(id: string, data: Marker): LiveAtlasPointMarker { id, type: LiveAtlasMarkerType.POINT, location: { - x: data.x || 0, - y: data.y || 0, - z: data.z || 0, + x: !isNaN(data.x) ? data.x + 0.5 : 0, + y: !isNaN(data.y) ? data.y + 0.5 : 0, + z: !isNaN(data.z) ? data.z + 0.5 : 0, }, dimensions: (dimensions || [16, 16]) as PointTuple, icon: data.icon || "default",