mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fix an issue where brewing stands will consume two fuel units for vanilla ingredients.
This commit is contained in:
parent
a51585f5d0
commit
6388246418
@ -53,7 +53,10 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
|||||||
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