Added in more debug things.
Noticed source vector was (0.5,0.5,1) figured maybe minerVector is not being set correctly
This commit is contained in:
parent
b4ce59e5e2
commit
2ce9e1cdae
1 changed files with 3 additions and 2 deletions
|
@ -64,11 +64,11 @@ public abstract class TileEntityAbstractMiner extends WarpChunkTE implements IGr
|
||||||
private void fixMinerVector()
|
private void fixMinerVector()
|
||||||
{
|
{
|
||||||
if(minerVector == null)
|
if(minerVector == null)
|
||||||
minerVector = new Vector3();
|
minerVector = new Vector3(xCoord,yCoord-laserBelow(),zCoord);
|
||||||
minerVector.x = xCoord;
|
minerVector.x = xCoord;
|
||||||
minerVector.y = yCoord - (laserBelow());
|
minerVector.y = yCoord - (laserBelow());
|
||||||
minerVector.z = zCoord;
|
minerVector.z = zCoord;
|
||||||
minerVector = minerVector.translate(0.5);
|
minerVector.translate(0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ItemStack> getItemStackFromBlock(int i, int j, int k, int blockID, int blockMeta)
|
private List<ItemStack> getItemStackFromBlock(int i, int j, int k, int blockID, int blockMeta)
|
||||||
|
@ -263,6 +263,7 @@ public abstract class TileEntityAbstractMiner extends WarpChunkTE implements IGr
|
||||||
|
|
||||||
protected void laserBlock(Vector3 valuable)
|
protected void laserBlock(Vector3 valuable)
|
||||||
{
|
{
|
||||||
|
fixMinerVector();
|
||||||
float r = getColorR();
|
float r = getColorR();
|
||||||
float g = getColorG();
|
float g = getColorG();
|
||||||
float b = getColorB();
|
float b = getColorB();
|
||||||
|
|
Loading…
Reference in a new issue