mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Merge pull request #3055 from jjm223/bugfix/fuel
Rapid fuel consumption fix
This commit is contained in:
commit
9689f55e5c
@ -52,8 +52,11 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
|||||||
if (Alchemy.brewingStandMap.containsKey(location)) {
|
if (Alchemy.brewingStandMap.containsKey(location)) {
|
||||||
Alchemy.brewingStandMap.get(location).cancel();
|
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);
|
Alchemy.brewingStandMap.put(location, this);
|
||||||
this.runTaskTimer(mcMMO.p, 1, 1);
|
this.runTaskTimer(mcMMO.p, 1, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user