From 81ad9bf76472ded54c43a4da421b2dc33be2ef11 Mon Sep 17 00:00:00 2001 From: Nicholas Ignoffo Date: Sat, 3 Mar 2018 19:17:06 -0800 Subject: [PATCH] Cleaner fuel handling --- .../bloodmagic/util/handler/event/CraftingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/WayofTime/bloodmagic/util/handler/event/CraftingHandler.java b/src/main/java/WayofTime/bloodmagic/util/handler/event/CraftingHandler.java index 119e96a2..c1456262 100644 --- a/src/main/java/WayofTime/bloodmagic/util/handler/event/CraftingHandler.java +++ b/src/main/java/WayofTime/bloodmagic/util/handler/event/CraftingHandler.java @@ -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))); } }