@Override
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
{
- int var11 = par3World.getBlockId(par4, par5, par6);
- Block block = Block.blocksList[var11];
+ int blockID = par3World.getBlockId(par4, par5, par6);
+ Block block = Block.blocksList[blockID];
- if (block instanceof BlockFire){
+ int uniqueBlockID = par3World.getBlockId(par4, par5 + 1, par6);
+ Block uniqueBlock = Block.blocksList[uniqueBlockID];
+
+ if (uniqueBlock instanceof BlockFire){
par1ItemStack.damageItem(1, par2EntityPlayer);
int result1 = MathHelperPlus.probability(99, 1);
if (result1 == 0) {
this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemCompounds, 1, ChemiCraftAPI.getInstance().getCompound("CarbonDioxide")), par2EntityPlayer);
} else {
- this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemAtoms, 1, 17), par2EntityPlayer);
+ this.isStackOrDrop(new ItemStack(ChemiCraft.instance.itemCompounds, 1, ChemiCraftAPI.getInstance().getCompound("CarbonMonoxide")), par2EntityPlayer);
}
return true;