gbl / AntiGhost

Mod that requests the server to send surrounding blocks to you, to get rid of ghost blocks
MIT License
28 stars 16 forks source link

Code optimization #12

Closed VoidCyborg closed 1 year ago

VoidCyborg commented 3 years ago

Some idea. Add mixin that find when minecraft send packets. And add that each time when player send PlayerActionC2SPacket.STOP_BREKING_BLOCK, you will send your packet with the same blockPos, but abort_breaking_block. And it all, so usually vanila player can break max 1 blocks per tick, so you Will never send more packets than possible.