From e7b74187c5b4334e8b41123dbb9ee9eaf6d3cbd0 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 24 Jan 2019 09:03:29 +0100 Subject: [PATCH] mapobj with absolute coords --- server/mapobjectdb/accessor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/mapobjectdb/accessor.go b/server/mapobjectdb/accessor.go index 69d6d0b..fdad07c 100644 --- a/server/mapobjectdb/accessor.go +++ b/server/mapobjectdb/accessor.go @@ -33,9 +33,9 @@ func NewMapObject(MBPos *coords.MapBlockCoords, x int, y int, z int, _type strin o := MapObject{ MBPos: MBPos, Type: _type, - X: x, - Y: y, - Z: z, + X: MBPos.X + x, + Y: MBPos.Y + y, + Z: MBPos.Z + z, Mtime: time.Now().Unix(), Attributes: make(map[string]string), }