Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

world.setBlock negative position #1

Open
jdSteven01 opened this issue Feb 1, 2015 · 3 comments
Open

world.setBlock negative position #1

jdSteven01 opened this issue Feb 1, 2015 · 3 comments

Comments

@jdSteven01
Copy link

If I use negative number in setblock position, chunk error occurs!
please fix it.
(or my mistake?)
2015-02-01_19 48 23

@MorbZ
Copy link
Owner

MorbZ commented Feb 10, 2015

I could not replicate the bug. Are you running the newest version?

@jdSteven01
Copy link
Author

hmm...
see this:
please see minecraft version.

2015-02-11_21 46 37
2015-02-11_21 39 53
2015-02-11_21 41 17
2015-02-11_21 44 06

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)

default

or my computer's error?

@jdSteven01
Copy link
Author

Found the cause of the error in NBTExplorer.
normal chunk:
normal

error chunk:
error

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);

2015-02-13_10 36 44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants