mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-09 21:29:20 +01:00
Close any open inventories before showing shapeless recipes (#5122)
This commit is contained in:
parent
0ca58ce4ba
commit
28d7abe642
@ -155,6 +155,7 @@ public class Commandrecipe extends EssentialsCommand {
|
||||
final List<ItemStack> ingredients = recipe.getIngredientList();
|
||||
if (showWindow) {
|
||||
final User user = ess.getUser(sender.getPlayer());
|
||||
user.getBase().closeInventory();
|
||||
user.setRecipeSee(true);
|
||||
final InventoryView view = user.getBase().openWorkbench(null, true);
|
||||
for (int i = 0; i < ingredients.size(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user