add owner in mapobject for label and border

This commit is contained in:
NatureFreshMilk 2019-03-22 12:52:03 +01:00
parent 4ae3ab9058
commit 4bacd9dfa9
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ func (this *BorderBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "border")
o.Attributes["name"] = md["name"]
o.Attributes["index"] = md["index"]
o.Attributes["owner"] = md["owner"]
return o
}

View File

@ -14,6 +14,7 @@ func (this *LabelBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock)
o.Attributes["text"] = md["text"]
o.Attributes["size"] = md["size"]
o.Attributes["direction"] = md["direction"]
o.Attributes["owner"] = md["owner"]
return o
}