Fixed the hit effects and delete the old fuel png
This commit is contained in:
parent
c4820303c6
commit
d4a396e94a
2 changed files with 6 additions and 3 deletions
Binary file not shown.
Before Width: | Height: | Size: 321 B |
|
@ -932,11 +932,14 @@ public class BlockGenericPipe extends BlockContainer {
|
|||
int x = target.blockX;
|
||||
int y = target.blockY;
|
||||
int z = target.blockZ;
|
||||
|
||||
Pipe pipe = getPipe(worldObj, x, y, z);
|
||||
if (pipe == null) return false;
|
||||
|
||||
Icon icon = BuildCraftTransport.instance.pipeIconProvider.getIcon(pipe.getIconIndexForItem());
|
||||
|
||||
int sideHit = target.sideHit;
|
||||
|
||||
int meta = worldObj.getBlockMetadata(x, y, z);
|
||||
|
||||
Block block = BuildCraftTransport.genericPipeBlock;
|
||||
float b = 0.1F;
|
||||
double px = x + rand.nextDouble() * (block.getBlockBoundsMaxX() - block.getBlockBoundsMinX() - (b * 2.0F)) + b + block.getBlockBoundsMinX();
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue