mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 22:11:07 +00:00
try/catch acceptClick until everything is implemented
This commit is contained in:
parent
af3cfeda51
commit
23094fd152
1 changed files with 6 additions and 1 deletions
|
|
@ -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} ={}) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue