Fixed MCedit 1.7.1 Support #59
@@ -42,7 +42,7 @@ public class RiftGenerator implements IWorldGenerator
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//FIXME: Why is this here? Comment your code! =/ ~SenseiKiwi
|
//This check prevents a crash related to superflat worlds not loading World 0
|
||||||
if (dimHelper.getWorld(0) == null)
|
if (dimHelper.getWorld(0) == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -314,7 +314,7 @@ public class Schematic {
|
|||||||
schematicTag.setString("Materials", "Alpha");
|
schematicTag.setString("Materials", "Alpha");
|
||||||
|
|
||||||
byte[] lowBits = new byte[blocks.length];
|
byte[] lowBits = new byte[blocks.length];
|
||||||
byte[] highBits = new byte[(blocks.length >> 1) + 1];
|
byte[] highBits = new byte[(blocks.length >> 1) + (blocks.length & 1)];
|
||||||
boolean hasExtendedIDs = encodeBlockIDs(blocks, lowBits, highBits);
|
boolean hasExtendedIDs = encodeBlockIDs(blocks, lowBits, highBits);
|
||||||
|
|
||||||
schematicTag.setByteArray("Blocks", lowBits);
|
schematicTag.setByteArray("Blocks", lowBits);
|
||||||
|
|||||||
Reference in New Issue
Block a user