mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fix brewing stand fuel refill loop.
If a brewing stand had 1 as a fuel value, and a brew was started (setting the fuel level to 0), the brewing stand would refill on its own while mcMMO would keep setting the fuel value back to 0. This used up all of the available blaze powder.
This commit is contained in:
parent
8822b4edae
commit
0e9674a912
@ -70,7 +70,9 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fuel != 0 || ((BrewingStand) brewingStand).getFuelLevel() != 20) {
|
||||||
((BrewingStand) brewingStand).setFuelLevel(fuel);
|
((BrewingStand) brewingStand).setFuelLevel(fuel);
|
||||||
|
}
|
||||||
|
|
||||||
brewTimer -= brewSpeed;
|
brewTimer -= brewSpeed;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user