Cleaner fuel handling
This commit is contained in:
parent
927fc6498f
commit
81ad9bf764
|
@ -143,7 +143,7 @@ public class CraftingHandler {
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void handleFuelLevel(FurnaceFuelBurnTimeEvent event) {
|
public static void handleFuelLevel(FurnaceFuelBurnTimeEvent event) {
|
||||||
if (event.getItemStack().getItem() == RegistrarBloodMagicItems.COMPONENT && event.getItemStack().getMetadata() == ComponentTypes.SAND_COAL.ordinal())
|
if (ItemStack.areItemsEqual(event.getItemStack(), ComponentTypes.SAND_COAL.getStack()))
|
||||||
event.setBurnTime(TileEntityFurnace.getItemBurnTime(new ItemStack(Items.COAL)));
|
event.setBurnTime(TileEntityFurnace.getItemBurnTime(new ItemStack(Items.COAL)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue