diff --git a/server/mapblockaccessor/mtime.go b/server/mapblockaccessor/mtime.go index ce8bada..49f5438 100644 --- a/server/mapblockaccessor/mtime.go +++ b/server/mapblockaccessor/mtime.go @@ -71,7 +71,14 @@ func (a *MapBlockAccessor) FindMapBlocksByMtime(lastmtime int64, limit int, laye mapblock, err := mapblockparser.Parse(block.Data, block.Mtime, block.Pos) if err != nil { - return nil, err + fields := logrus.Fields{ + "x": block.Pos.X, + "y": block.Pos.Y, + "z": block.Pos.Z, + "err": err, + } + logrus.WithFields(fields).Error("parse error") + continue } a.Eventbus.Emit(eventbus.MAPBLOCK_RENDERED, mapblock) diff --git a/server/static/js/api.js b/server/static/js/api.js index efa98d6..8908dca 100644 --- a/server/static/js/api.js +++ b/server/static/js/api.js @@ -9,7 +9,7 @@ var api = { }, getConfig: function(){ - return m.request("/api/config"); + return m.request("api/config"); }