forked from MTSR/mapserver
parent
2d50399b47
commit
06cc766986
@ -20,7 +20,15 @@ func (this *BonesBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock)
|
|||||||
|
|
||||||
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "bones")
|
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "bones")
|
||||||
o.Attributes["time"] = md["time"]
|
o.Attributes["time"] = md["time"]
|
||||||
|
|
||||||
|
if _, ok := md["owner"]; ok {
|
||||||
o.Attributes["owner"] = md["owner"]
|
o.Attributes["owner"] = md["owner"]
|
||||||
|
} else if _, ok := md["_owner"]; ok {
|
||||||
|
o.Attributes["owner"] = md["_owner"]
|
||||||
|
} else {
|
||||||
|
o.Attributes["owner"] = "unknown"
|
||||||
|
}
|
||||||
|
|
||||||
o.Attributes["info"] = md["infotext"]
|
o.Attributes["info"] = md["infotext"]
|
||||||
|
|
||||||
itemCount := 0
|
itemCount := 0
|
||||||
|
Loading…
Reference in New Issue
Block a user