J2Blocks
J2Blocks copied to clipboard
world.setBlock negative position
If I use negative number in setblock position, chunk error occurs!
please fix it.
(or my mistake?)
I could not replicate the bug. Are you running the newest version?
hmm... see this: please see minecraft version.
code: for(int a = -1023; a < 1024; a++){ for(int b = -1023; b < 1024; b++){ world.setBlock(a,10,b... } }
so, minecraft 1.8 below: (red : error)
or my computer's error?
Found the cause of the error in NBTExplorer.
normal chunk:
error chunk:
so, I change your code.
Region.java, line 195
chunk = new Chunk(this, chunkX, chunkZ, layers);
-> chunk = new Chunk(this, chunkX + (xPos * 32), chunkZ + (zPos * 32), layers);