From 0b3d7c46abf29d81fd439837dffeede708cc0b9c Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Tue, 12 Feb 2019 13:34:15 +0100 Subject: [PATCH] fix #8 --- server/mapobject/smartshop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mapobject/smartshop.go b/server/mapobject/smartshop.go index fd655c6..072a35a 100644 --- a/server/mapobject/smartshop.go +++ b/server/mapobject/smartshop.go @@ -10,7 +10,7 @@ import ( type SmartShopBlock struct{} func (this *SmartShopBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) []*mapobjectdb.MapObject { - list := make([]*mapobjectdb.MapObject, 4) + list := make([]*mapobjectdb.MapObject, 0) md := block.Metadata.GetMetadata(x, y, z) invMap := block.Metadata.GetInventoryMapAtPos(x, y, z)