mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 05:44:27 +00:00
Fix #8; standardize block of charcoal to 16000 tick time
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user