From 9d38a8e0ede83b80cb0b91c0cf6a84d6b43231a2 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 25 Jul 2019 08:51:43 +0200 Subject: [PATCH] fix #43 --- mapobject/mission.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapobject/mission.go b/mapobject/mission.go index d4485be..6320591 100644 --- a/mapobject/mission.go +++ b/mapobject/mission.go @@ -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"]