mapblock error catch

This commit is contained in:
NatureFreshMilk 2019-03-21 15:50:41 +01:00
parent 0d5df2062a
commit ae7cef3c5f

View File

@ -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)
}
}