mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-26 23:03:44 +01:00 
			
		
		
		
	Fix brewing stands consuming all remaining fuel items when the fuel bar is refilled
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 minoneer
					minoneer