Fixed the hit effects and delete the old fuel png

This commit is contained in:
Krapht 2013-03-28 23:12:36 +01:00
parent c4820303c6
commit d4a396e94a
2 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

View file

@ -933,9 +933,12 @@ public class BlockGenericPipe extends BlockContainer {
int y = target.blockY;
int z = target.blockZ;
int sideHit = target.sideHit;
Pipe pipe = getPipe(worldObj, x, y, z);
if (pipe == null) return false;
int meta = worldObj.getBlockMetadata(x, y, z);
Icon icon = BuildCraftTransport.instance.pipeIconProvider.getIcon(pipe.getIconIndexForItem());
int sideHit = target.sideHit;
Block block = BuildCraftTransport.genericPipeBlock;
float b = 0.1F;
@ -968,7 +971,7 @@ public class BlockGenericPipe extends BlockContainer {
}
EntityDiggingFX fx = new EntityDiggingFX(worldObj, px, py, pz, 0.0D, 0.0D, 0.0D, block, sideHit, worldObj.getBlockMetadata(x, y, z), Minecraft.getMinecraft().renderEngine);
fx.func_94052_a(Minecraft.getMinecraft().renderEngine, getBlockTexture(worldObj, x, y, z, 0));
fx.func_94052_a(Minecraft.getMinecraft().renderEngine, icon);
effectRenderer.addEffect(fx.func_70596_a(x, y, z).multiplyVelocity(0.2F).multipleParticleScaleBy(0.6F));
return true;
}