فهرست منبع

Merge pull request #3055 from jjm223/bugfix/fuel

Rapid fuel consumption fix
t00thpick1 8 سال پیش
والد
کامیت
9689f55e5c
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java

+ 5 - 2
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);