rob9315 / mcproxy

a minecraft proxy library powered by mineflayer
GNU General Public License v3.0
15 stars 6 forks source link

Add packet un-canceling #22

Closed IceTank closed 1 year ago

IceTank commented 1 year ago

When a packet has been canceled by a middleware following middleware may accidentally un cancel the packet by setting new data. This change makes un-canceling packet only possible when the middleware specifically returns true.

IceTank commented 1 year ago

Refactored the middleware processing to its own function. Have not had the time to test it yet but will so. Will update when I think it is stable.