1
0
forked from MTSR/mapserver
This commit is contained in:
NatureFreshMilk 2019-07-25 08:51:43 +02:00
parent bfcd3167a0
commit 9d38a8e0ed

View File

@ -10,6 +10,10 @@ type MissionBlock struct{}
func (this *MissionBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) *mapobjectdb.MapObject {
md := block.Metadata.GetMetadata(x, y, z)
if md["hidden"] == "1" {
return nil
}
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "mission")
o.Attributes["name"] = md["name"]
o.Attributes["time"] = md["time"]