Fixed world generation following previous update

This commit is contained in:
LemADEC 2015-08-03 03:56:56 +02:00
parent 00804db39b
commit 17b1def882
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ public class JumpBlock {
}
// This code is a straight copy from Vanilla net.minecraft.world.World.setBlock to remove lighting computations
public boolean setBlockNoLight(World w, int x, int y, int z, Block block, int blockMeta, int par6) {
public static boolean setBlockNoLight(World w, int x, int y, int z, Block block, int blockMeta, int par6) {
if (x >= -30000000 && z >= -30000000 && x < 30000000 && z < 30000000) {
if (y < 0) {
return false;

View file

@ -140,7 +140,7 @@ public final class EntitySphereGen extends Entity {
break;
notifyFlag = (currentIndex % 1000 == 0 ? 2 : 0);
JumpBlock jb = blocks.get(currentIndex);
JumpBlock.mySetBlock(worldObj, jb.x, jb.y, jb.z, jb.block, jb.blockMeta, notifyFlag);
JumpBlock.setBlockNoLight(worldObj, jb.x, jb.y, jb.z, jb.block, jb.blockMeta, notifyFlag);
currentIndex++;
}