Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
35e97b03e2
6 changed files with 15 additions and 11 deletions
|
@ -55,6 +55,7 @@ public class TileEntityRift extends TileEntity
|
||||||
}
|
}
|
||||||
public void clearBlocksOnRift()
|
public void clearBlocksOnRift()
|
||||||
{
|
{
|
||||||
|
|
||||||
for(double[] coord: this.renderingCenters.values())
|
for(double[] coord: this.renderingCenters.values())
|
||||||
{
|
{
|
||||||
int x = MathHelper.floor_double(coord[0]+.5);
|
int x = MathHelper.floor_double(coord[0]+.5);
|
||||||
|
@ -164,6 +165,11 @@ public class TileEntityRift extends TileEntity
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
this.worldObj.setBlockToAir(xCoord, yCoord, zCoord);
|
this.worldObj.setBlockToAir(xCoord, yCoord, zCoord);
|
||||||
}
|
}
|
||||||
|
if(this.worldObj.getBlockId(xCoord, yCoord, zCoord)!=mod_pocketDim.blockRift.blockID)
|
||||||
|
{
|
||||||
|
this.invalidate();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public void grow(int distance)
|
public void grow(int distance)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
@SideOnly(Side.CLIENT)
|
||||||
|
|
|
@ -281,6 +281,8 @@ public class dimDoor extends BlockContainer
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
par1World.setBlockTileEntity(par2, par3, par4, this.createNewTileEntity(par1World));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1168,17 +1168,13 @@ public class dimHelper extends DimensionManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
linkToMove.locDimID=dimID;
|
this.createLink(new LinkData(dimID,linkToMove.destDimID,x,y,z,linkToMove.destXCoord,linkToMove.destYCoord,linkToMove.destZCoord,linkToMove.isLocPocket,linkToMove.linkOrientation));
|
||||||
linkToMove.locXCoord=x;
|
|
||||||
linkToMove.locYCoord=y;
|
|
||||||
linkToMove.locZCoord=z;
|
|
||||||
if(this.getLinkDataFromCoords(oldX,oldY,oldZ,oldDimID)!=null)
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class RenderRift extends TileEntitySpecialRenderer
|
||||||
//GL11.glLogicOp(GL11.GL_INVERT);
|
//GL11.glLogicOp(GL11.GL_INVERT);
|
||||||
// GL11.glEnable(GL11.GL_COLOR_LOGIC_OP);
|
// GL11.glEnable(GL11.GL_COLOR_LOGIC_OP);
|
||||||
|
|
||||||
GL11.glColor4f(.3F, .3F, .3F, 1F);
|
GL11.glColor4f(.2F, .2F, .2F, 1F);
|
||||||
|
|
||||||
GL11.glEnable(GL_BLEND);
|
GL11.glEnable(GL_BLEND);
|
||||||
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);
|
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);
|
||||||
|
|
Loading…
Reference in a new issue