1
0
forked from MTSR/mapserver
This commit is contained in:
NatureFreshMilk 2019-02-15 14:30:51 +01:00
parent 14ddfeedf9
commit aeb68a576c
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ func (this *Item) IsEmpty() bool {
}
type Inventory struct {
Size int `json:"size"`
Size int `json:"size"`
Items []*Item `json:"items"`
}

View File

@ -1,9 +1,9 @@
package mapobject
import (
"mapserver/luaparser"
"mapserver/mapblockparser"
"mapserver/mapobjectdb"
"mapserver/luaparser"
"strconv"
)
@ -31,7 +31,7 @@ func (this *FancyVend) onMapObject(x, y, z int, block *mapblockparser.MapBlock)
settings, err := parser.ParseMap(md["settings"])
if err != nil {
panic(err)//TODO
panic(err) //TODO
}
if settings["input_item_qty"] == nil || settings["output_item_qty"] == nil {