forked from MTSR/mapserver
fix #43
This commit is contained in:
parent
bfcd3167a0
commit
9d38a8e0ed
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user