Cleaner fuel handling

This commit is contained in:
Nicholas Ignoffo 2018-03-03 19:17:06 -08:00
parent 927fc6498f
commit 81ad9bf764

View file

@ -143,7 +143,7 @@ public class CraftingHandler {
@SubscribeEvent
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)));
}
}