fixed instacrash

This commit is contained in:
StevenRS11
2013-06-11 00:41:40 -04:00
parent 000e0153b8
commit 43ead374cc
5 changed files with 50 additions and 6 deletions

View File

@@ -367,6 +367,17 @@ public class DungeonHelper
int index = y * width * length + z * width + x;
int blockID = world.getBlockId(x+xMin, y+yMin, z+zMin);
int meta= world.getBlockMetadata(x+xMin, y+yMin, z+zMin);
if(blockID==mod_pocketDim.dimDoorID)
{
blockID=Block.doorIron.blockID;
}
if(blockID==mod_pocketDim.ExitDoorID)
{
blockID=Block.doorWood.blockID;
}
// Save 4096 IDs in an AddBlocks section
if (blockID > 255) {
if (addBlocks == null) { // Lazily create section