Fix #8; standardize block of charcoal to 16000 tick time

This commit is contained in:
Dave Smith committed 2019-03-02 21:20:16 -07:00
1 parent 8da2d2dae1
commit 53181aae64
1 file changed
+6 -1
@@ -355,6 +355,11 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
@Override
public int getItemBurnTime(ItemStack itemStack) {
return this.metaBlock == MekanismBlocks.BasicBlock && itemStack.getMetadata() == 3 ? 200*8*9 : super.getItemBurnTime(itemStack);
// If this is a block of charcoal, set burn time to 16000 ticks (per Minecraft standard)
if (this.metaBlock == MekanismBlocks.BasicBlock && itemStack.getMetadata() == 3) {
return 16000; // ticks
} else {
return super.getItemBurnTime(itemStack);
}
}
}