konstructs / server

A voxel based game server.
http://www.konstructs.org
MIT License
49 stars 12 forks source link

Extend chunk format with revision #133

Closed petterarvidsson closed 8 years ago

petterarvidsson commented 8 years ago

Keep track of the revision of the chunk

petterarvidsson commented 8 years ago

@nsg That would work, and then we could use ntoh on the client side. Wanted to "keep it simple", but I can clearly see that this clusterf*ck of bit operators is maybe not simple :smile: I'll make an update to both!

petterarvidsson commented 8 years ago

Ah, sigh, we are also using the other chunk data with sub byte lengths and then there is all the fun with the java ints only being signed (making it impossible to write unsigned bytes using ByteBuffer anyway). So in the end we will have all the extra code of creating the buffer and few of the benefits...