Center point markers in their block to match player markers

This commit is contained in:
James Lyne 2022-01-17 19:01:19 +00:00
parent d9ca473674
commit 62f7b25fb5

View File

@ -308,9 +308,9 @@ export function buildMarker(id: string, data: Marker): LiveAtlasPointMarker {
id, id,
type: LiveAtlasMarkerType.POINT, type: LiveAtlasMarkerType.POINT,
location: { location: {
x: data.x || 0, x: !isNaN(data.x) ? data.x + 0.5 : 0,
y: data.y || 0, y: !isNaN(data.y) ? data.y + 0.5 : 0,
z: data.z || 0, z: !isNaN(data.z) ? data.z + 0.5 : 0,
}, },
dimensions: (dimensions || [16, 16]) as PointTuple, dimensions: (dimensions || [16, 16]) as PointTuple,
icon: data.icon || "default", icon: data.icon || "default",