SpockBotMC / SpockBot

High level Python framework for building Minecraft clients and bots.
MIT License
198 stars 47 forks source link

Simplify and improve BoundBuffer internals. #89

Closed barneygale closed 9 years ago

barneygale commented 9 years ago

Use a cursor to handle saving/reverting of the buffer. This avoids some string-munging in read() and the need to store 2 copies of every packet.

Methods should all return the same thing, but the instance variables are different.