misc fixes, make skylight fixed height and client only
This commit is contained in:
parent
ae0dc2e7cf
commit
fedb597863
9 changed files with 2 additions and 33 deletions
|
@ -100,7 +100,7 @@ public class CommandLoad extends Command {
|
|||
this.addLong("rotation", 'r', 1L, 1000000000000L, 25000L);
|
||||
this.addDouble("offset", 'm', 0.0, 100000.0, 0.0);
|
||||
this.addDouble("gravity", 'g', 0.0, 100000.0, 10.0);
|
||||
this.addDouble("temperature", 'k', 0.0, 100000.0, 260.0);
|
||||
this.addDouble("temperature", 'k', 0.0, 100000.0, 293.0);
|
||||
this.addInt("brightness", 'b', 0, 15, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -1446,7 +1446,6 @@ public abstract class Converter {
|
|||
ntag.setIntArray("H", height);
|
||||
byte[] oldblks = tag.getByteArray("Blocks");
|
||||
byte[] olddata = tag.getByteArray("Data");
|
||||
byte[] oldsky = tag.getByteArray("SkyLight");
|
||||
byte[] oldlight = tag.getByteArray("BlockLight");
|
||||
List<TagObject> sections = Lists.newArrayList();
|
||||
for(int n = 0; n < 8; ++n) {
|
||||
|
@ -1475,7 +1474,6 @@ public abstract class Converter {
|
|||
int blk = oldblks[pos];
|
||||
blocks[y << 8 | z << 4 | x] = (byte)(blk & 255);
|
||||
data.set(x, y, z, getNibble(olddata, x, y + (n << 4), z));
|
||||
sky.set(x, y, z, getNibble(oldsky, x, y + (n << 4), z));
|
||||
light.set(x, y, z, getNibble(oldlight, x, y + (n << 4), z));
|
||||
}
|
||||
}
|
||||
|
@ -1484,7 +1482,6 @@ public abstract class Converter {
|
|||
section.setByte("Y", (byte)(n & 255));
|
||||
section.setByteArray("Blocks", blocks);
|
||||
section.setByteArray("Data", data.getData());
|
||||
section.setByteArray("SkyLight", sky.getData());
|
||||
section.setByteArray("BlockLight", light.getData());
|
||||
sections.add(section);
|
||||
}
|
||||
|
@ -1496,7 +1493,6 @@ public abstract class Converter {
|
|||
}
|
||||
|
||||
ntag.setBool("P", true);
|
||||
ntag.setBool("L", tag.getByte("LightPopulated") != 0);
|
||||
|
||||
ntag.setList("E", Lists.newArrayList());
|
||||
|
||||
|
@ -1568,7 +1564,6 @@ public abstract class Converter {
|
|||
nsect.setInt("Y", y);
|
||||
nsect.setByteArray("D", newblks);
|
||||
nsect.setByteArray("B", sect.getByteArray("BlockLight"));
|
||||
nsect.setByteArray("S", sect.getByteArray("SkyLight"));
|
||||
list.add(nsect);
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,6 @@ import common.village.Village;
|
|||
import common.world.BlockArray;
|
||||
import common.world.Chunk;
|
||||
import common.world.AWorldServer;
|
||||
import common.world.LightType;
|
||||
import common.world.State;
|
||||
import common.world.Weather;
|
||||
import common.world.World;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue