fenomas / noa

Experimental voxel game engine.
MIT License
616 stars 91 forks source link

256 block limit? #99

Closed Heath123 closed 4 years ago

Heath123 commented 4 years ago

You said in #93 that you can register 512 blocks, but here: https://github.com/andyhall/noa/blob/65e6c88ad64c05055190ba42255e2b530455f221/src/lib/registry.js#L35 it's limited to 255. Is there a reason for that or is it an oversight? Thank you

fenomas commented 4 years ago

Ah, nice catch! That line is wrong, the logic that stores voxel data uses nine bits for the voxel ID. I'll fix this next release.

Heath123 commented 4 years ago

Thank you!

fenomas commented 4 years ago

Should be fixed in #develop, so #master will be fixed in next update.