1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2022-04-19 20:51:13 +02:00
parent 5d093822de
commit 217196c137
4 changed files with 8 additions and 3 deletions

View File

@ -42,6 +42,7 @@
#### Fixes
* Fixed #3445
* Fixed #3504
* Fixed #3534
## Release Candidate 31 (14 Mar 2022)
https://thebusybiscuit.github.io/builds/TheBusyBiscuit/Slimefun4/stable/#31

View File

@ -142,7 +142,7 @@ public final class ChestMenuUtils {
}
im.setDisplayName(" ");
im.setLore(Arrays.asList(getProgressBar(timeLeft, time), "", ChatColor.GRAY + NumberUtils.getTimeLeft(timeLeft / 2) + " left"));
im.setLore(Arrays.asList(getProgressBar(timeLeft, time), "", ChatColor.GRAY + NumberUtils.getTimeLeft(timeLeft / 2)));
item.setItemMeta(im);
menu.replaceExistingItem(slot, item);

View File

@ -372,7 +372,11 @@ public abstract class AContainer extends SlimefunItem implements InventoryBlock,
MachineRecipe next = findNextRecipe(inv);
if (next != null) {
processor.startOperation(b, new CraftingOperation(next));
currentOperation = new CraftingOperation(next);
processor.startOperation(b, currentOperation);
// Fixes #3534 - Update indicator immediately
processor.updateProgressBar(inv, 22, currentOperation);
}
}
}

View File

@ -21,7 +21,7 @@ import be.seeseemelk.mockbukkit.MockBukkit;
import be.seeseemelk.mockbukkit.WorldMock;
class TestFireworkUtils {
private static World world;
@BeforeAll