From 837055bc200a334dab9e4f0a1db243d919c428bd Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Thu, 12 Dec 2019 21:46:13 +0100 Subject: [PATCH] ignore empty owner field in old bones fixes #68 --- mapobject/bones.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mapobject/bones.go b/mapobject/bones.go index fd97018..aba6d19 100644 --- a/mapobject/bones.go +++ b/mapobject/bones.go @@ -11,13 +11,10 @@ type BonesBlock struct{} func (this *BonesBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) *mapobjectdb.MapObject { md := block.Metadata.GetMetadata(x, y, z) - if md["owner"] == "" { - return nil - } - o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "bones") o.Attributes["time"] = md["time"] o.Attributes["owner"] = md["owner"] + o.Attributes["info"] = md["infotext"] invMap := block.Metadata.GetInventoryMapAtPos(x, y, z) mainInv := invMap["main"]