try/catch acceptClick until everything is implemented

This commit is contained in:
Romain Beaumont 2015-11-28 01:53:35 +01:00
parent af3cfeda51
commit 23094fd152

View file

@ -125,7 +125,12 @@ module.exports.player = function(player)
// Let the inventory know of the click.
// It's important to let it know of the click later, because it destroys
// information we need about the inventory.
player.inventory.acceptClick(clickInfo)
try {
player.inventory.acceptClick(clickInfo)
}
catch(err) {
serv.emit('error',err);
}
})
player._client.on("set_creative_slot", ({slot,item} ={}) => {