Center point markers in their block to match player markers
This commit is contained in:
parent
d9ca473674
commit
62f7b25fb5
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user