mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36: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
@ -69,8 +69,10 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
((BrewingStand) brewingStand).setFuelLevel(fuel);
|
if (fuel != 0 || ((BrewingStand) brewingStand).getFuelLevel() != 20) {
|
||||||
|
((BrewingStand) brewingStand).setFuelLevel(fuel);
|
||||||
|
}
|
||||||
|
|
||||||
brewTimer -= brewSpeed;
|
brewTimer -= brewSpeed;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user