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 {
|
func (this *MissionBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) *mapobjectdb.MapObject {
|
||||||
md := block.Metadata.GetMetadata(x, y, z)
|
md := block.Metadata.GetMetadata(x, y, z)
|
||||||
|
|
||||||
|
if md["hidden"] == "1" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "mission")
|
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "mission")
|
||||||
o.Attributes["name"] = md["name"]
|
o.Attributes["name"] = md["name"]
|
||||||
o.Attributes["time"] = md["time"]
|
o.Attributes["time"] = md["time"]
|
||||||
|
Loading…
Reference in New Issue
Block a user