Change build height from 128 to 256, fixes #412

This commit is contained in:
MrPowerGamerBR 2017-02-04 09:27:50 -02:00
parent 1fdc0a59ec
commit 0ceb13eac4
3 changed files with 5 additions and 5 deletions

View File

@ -247,7 +247,7 @@ public class NukkitWorld extends LocalWorld {
@Override @Override
public int getMaxY() { public int getMaxY() {
return 127; return 255;
} }
@Override @Override
@ -257,7 +257,7 @@ public class NukkitWorld extends LocalWorld {
@Override @Override
public Vector getMaximumPoint() { public Vector getMaximumPoint() {
return new Vector(30000000, 127, 30000000); return new Vector(30000000, 255, 30000000);
} }
@Override @Override

View File

@ -29,7 +29,7 @@ public class FaweNukkit implements IFawe, Listener {
public FaweNukkit(NukkitWorldEdit mod) { public FaweNukkit(NukkitWorldEdit mod) {
this.plugin = mod; this.plugin = mod;
FaweChunk.HEIGHT = 128; FaweChunk.HEIGHT = 256;
plugin.getServer().getPluginManager().registerEvents(this, plugin); plugin.getServer().getPluginManager().registerEvents(this, plugin);
} }

View File

@ -171,7 +171,7 @@ public class NukkitQueue extends NMSMappedFaweQueue<Level, BaseFullChunk, BaseFu
@Override @Override
public void setFullbright(BaseFullChunk sections) { public void setFullbright(BaseFullChunk sections) {
for (int y = 0; y < 128; y++) { for (int y = 0; y < 256; y++) {
for (int z = 0; z < 16; z++) { for (int z = 0; z < 16; z++) {
for (int x = 0; x < 16; x++) { for (int x = 0; x < 16; x++) {
sections.setBlockSkyLight(x, y, z, 15); sections.setBlockSkyLight(x, y, z, 15);
@ -182,7 +182,7 @@ public class NukkitQueue extends NMSMappedFaweQueue<Level, BaseFullChunk, BaseFu
@Override @Override
public boolean removeLighting(BaseFullChunk sections, RelightMode mode, boolean hasSky) { public boolean removeLighting(BaseFullChunk sections, RelightMode mode, boolean hasSky) {
for (int y = 0; y < 128; y++) { for (int y = 0; y < 256; y++) {
for (int z = 0; z < 16; z++) { for (int z = 0; z < 16; z++) {
for (int x = 0; x < 16; x++) { for (int x = 0; x < 16; x++) {
sections.setBlockSkyLight(x, y, z, 0); sections.setBlockSkyLight(x, y, z, 0);