mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #2009
This commit is contained in:
parent
1456245ee0
commit
907fb1566a
@ -31,6 +31,7 @@
|
||||
|
||||
#### Fixes
|
||||
* Fixed #2005
|
||||
* Fixed #2009
|
||||
|
||||
## Release Candidate 13 (16 Jun 2020)
|
||||
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#13
|
||||
|
@ -64,7 +64,10 @@ public abstract class ElectricGoldPan extends AContainer implements RecipeDispla
|
||||
ChestMenuUtils.updateProgressbar(menu, 22, timeleft, processing.get(b).getTicks(), getProgressBar());
|
||||
|
||||
if (ChargableBlock.isChargable(b)) {
|
||||
if (ChargableBlock.getCharge(b) < getEnergyConsumption()) return;
|
||||
if (ChargableBlock.getCharge(b) < getEnergyConsumption()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ChargableBlock.addCharge(b, -getEnergyConsumption());
|
||||
progress.put(b, timeleft - 1);
|
||||
}
|
||||
@ -76,10 +79,16 @@ public abstract class ElectricGoldPan extends AContainer implements RecipeDispla
|
||||
if (ChargableBlock.getCharge(b) < getEnergyConsumption()) {
|
||||
return;
|
||||
}
|
||||
|
||||
ChargableBlock.addCharge(b, -getEnergyConsumption());
|
||||
|
||||
menu.replaceExistingItem(22, new CustomItem(new ItemStack(Material.BLACK_STAINED_GLASS_PANE), " "));
|
||||
menu.pushItem(processing.get(b).getOutput()[0].clone(), getOutputSlots());
|
||||
|
||||
ItemStack output = processing.get(b).getOutput()[0];
|
||||
|
||||
if (output.getType() != Material.AIR) {
|
||||
menu.pushItem(output.clone(), getOutputSlots());
|
||||
}
|
||||
|
||||
progress.remove(b);
|
||||
processing.remove(b);
|
||||
|
Loading…
Reference in New Issue
Block a user