diff --git a/server/mapobject/listener.go b/server/mapobject/listener.go index 9a072a1..02d3cdd 100644 --- a/server/mapobject/listener.go +++ b/server/mapobject/listener.go @@ -99,7 +99,10 @@ func (this *Listener) OnEvent(eventtype string, o interface{}) { obj := v.onMapObject(x, y, z, block) if obj != nil { - this.ctx.Objectdb.AddMapData(obj) + err := this.ctx.Objectdb.AddMapData(obj) + if err != nil { + panic(err) + } this.ctx.WebEventbus.Emit("mapobject-created", obj) } }