starandserpent / java-TerraServer

Terra - Voxel octree of chunks, made for Rituals of the old
MIT License
18 stars 2 forks source link

Terra does not load empty space #37

Closed Pawlost closed 5 years ago

Pawlost commented 5 years ago

id is saved in MemoryArea as 0 in Palette16CriticalBuffer, but when it is converted to Storage in Palette16BlockBuffer then read value is 1 when the whole chunk is empty it works right 1 is Dirt 0 is Air this means that terra currently cannot create air

read and write methods in critical buffer work good but read method in BufferWithFormat have the ID problem it loads(reads) 0 as 1

the-brickster commented 5 years ago

It seems as if the issue is related to the final block in the chunk

Pawlost commented 5 years ago

I fixed the issue related to the final block. Now we need to figure out ID problem.

Pawlost commented 5 years ago

We solved bug by increasing all ids by 1