Fixed large water turbine generating same power as small turbine

This commit is contained in:
Calclavia 2014-03-02 17:09:14 +08:00
parent 62f2a4422f
commit d81f2fa6fa

View file

@ -65,10 +65,10 @@ public class TileWaterTurbine extends TileMechanicalTurbine
worldObj.setBlock(xCoord, yCoord - 1, zCoord, Block.waterStill.blockID);
}
}
else if (getMultiBlock().isPrimary())
else
{
int checkX = xCoord;
int checkY = yCoord - (this.getMultiBlock().isConstructed() ? 1 + multiBlockRadius : 1);
int checkY = yCoord - 1;
int checkZ = zCoord;
int blockID = worldObj.getBlockId(xCoord, checkY, checkZ);
int metadata = worldObj.getBlockMetadata(xCoord, checkY, checkZ);