forked from MTSR/mapserver
parent
914311593c
commit
837055bc20
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user