Merge pull request #3055 from jjm223/bugfix/fuel

Rapid fuel consumption fix
This commit is contained in:
t00thpick1 2016-12-01 00:54:32 -05:00 committed by GitHub
commit 9689f55e5c

View File

@ -53,7 +53,10 @@ public class AlchemyBrewTask extends BukkitRunnable {
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);