From 6388246418d3a1b32607ec03b270f614be4cda4c Mon Sep 17 00:00:00 2001 From: Jacob Martin Date: Sun, 13 Nov 2016 10:26:29 -0600 Subject: [PATCH] Fix an issue where brewing stands will consume two fuel units for vanilla ingredients. --- .../gmail/nossr50/runnables/skills/AlchemyBrewTask.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java b/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java index 0a3065325..4971496cf 100644 --- a/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java @@ -52,8 +52,11 @@ public class AlchemyBrewTask extends BukkitRunnable { if (Alchemy.brewingStandMap.containsKey(location)) { Alchemy.brewingStandMap.get(location).cancel(); } - - fuel = ((BrewingStand) brewingStand).getFuelLevel() - 1; + + fuel = ((BrewingStand) brewingStand).getFuelLevel(); + + if (((BrewingStand) brewingStand).getBrewingTime() == -1) // Only decrement on our end if it isn't a vanilla ingredient. + fuel--; Alchemy.brewingStandMap.put(location, this); this.runTaskTimer(mcMMO.p, 1, 1);