mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 00:45:27 +01:00
Fix brewing stands consuming all remaining fuel items when the fuel bar is refilled
This commit is contained in:
parent
11aa126b80
commit
25cad3afc6
@ -28,6 +28,7 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
||||
private double brewTimer;
|
||||
private Player player;
|
||||
private int fuel;
|
||||
private boolean firstRun = true;
|
||||
|
||||
public AlchemyBrewTask(BlockState brewingStand, Player player) {
|
||||
this.brewingStand = brewingStand;
|
||||
@ -70,7 +71,10 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
||||
return;
|
||||
}
|
||||
|
||||
((BrewingStand) brewingStand).setFuelLevel(fuel);
|
||||
if (firstRun) {
|
||||
firstRun = false;
|
||||
((BrewingStand) brewingStand).setFuelLevel(fuel);
|
||||
}
|
||||
|
||||
brewTimer -= brewSpeed;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user