Fixed a few bugs, more rendering changes

This commit is contained in:
StevenRS11
2013-08-22 16:04:08 -04:00
parent c7ddff97b2
commit 758f5e5062
6 changed files with 44 additions and 27 deletions

View File

@@ -55,6 +55,8 @@ public class TileEntityRift extends TileEntity
}
public void clearBlocksOnRift()
{
System.out.println(this.worldObj.getBlockId(xCoord, yCoord,zCoord));
for(double[] coord: this.renderingCenters.values())
{
int x = MathHelper.floor_double(coord[0]+.5);
@@ -164,6 +166,11 @@ public class TileEntityRift extends TileEntity
this.invalidate();
this.worldObj.setBlockToAir(xCoord, yCoord, zCoord);
}
if(this.worldObj.getBlockId(xCoord, yCoord, zCoord)!=mod_pocketDim.blockRift.blockID)
{
this.invalidate();
}
}
public void grow(int distance)
{

View File

@@ -125,7 +125,7 @@ public class ExitDoor extends dimDoor
}
//this.onPoweredBlockChange(par1World, par2, par3, par4, false);
par1World.setBlockTileEntity(par2, par3, par4, this.createNewTileEntity(par1World));
}
@SideOnly(Side.CLIENT)

View File

@@ -281,6 +281,8 @@ public class dimDoor extends BlockContainer
}
}
par1World.setBlockTileEntity(par2, par3, par4, this.createNewTileEntity(par1World));
}

View File

@@ -50,7 +50,7 @@ public class DungeonPack
{
String standardName = typeName.toUpperCase();
this.nameToTypeMapping.put(standardName, new DungeonType(this, standardName, index));
this.groupedDungeons.add(new ArrayList<DungeonGenerator>());
this.groupedDungeons.add(new ArrayList<DungeonGenerator>());
index++;
}

View File

@@ -1125,17 +1125,13 @@ public class dimHelper extends DimensionManager
}
}
}
linkToMove.locDimID=dimID;
linkToMove.locXCoord=x;
linkToMove.locYCoord=y;
linkToMove.locZCoord=z;
this.createLink(new LinkData(dimID,linkToMove.destDimID,x,y,z,linkToMove.destXCoord,linkToMove.destYCoord,linkToMove.destZCoord,linkToMove.isLocPocket,linkToMove.linkOrientation));
if(this.getLinkDataFromCoords(oldX,oldY,oldZ,oldDimID)!=null)
{
// this.removeLink(this.getLinkDataFromCoords(oldX,oldY,oldZ,oldDimID));
this.removeLink(this.getLinkDataFromCoords(oldX,oldY,oldZ,oldDimID));
}
this.createLink(linkToMove);
LinkData linkTest = dimHelper.instance.getLinkDataFromCoords(x, y, z, dimID);
linkTest.printLinkData();
return true;
}
return false;