Closed rom1504 closed 5 years ago
maybe the server doesn't send more than one rejected transaction in a row ?
apparently adding a setTimeout to call the callback if the server doesn't feel like sending a transaction packet does it (it seems to work for @demipixel )
doesn't feel like sending a transaction packet
... wut ?
Yeah I hope there's a better explanation than that @roblabla ^^
test whether it works or not on vanilla.
Having packet logs for comparison would be useful here.
this issue is too imprecise, closing
It's needed for https://github.com/demipixel/shotbow-servers/blob/master/extension.js : us.shotbow.net server uses slots in a window as button and when you click it the item isn't taken, and the transaction is rejected. Apparently mineflayer doesn't react to rejected transactions correctly since the server then doesn't send any other transaction packet (see http://wiki.vg/Protocol#Click_Window) Also see https://github.com/andrewrk/mineflayer/blob/master/lib/plugins/inventory.js#L296