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:
Jacob Martin 2016-06-19 19:33:01 -05:00
parent 8822b4edae
commit 0e9674a912

View File

@ -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;