mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-03-01 15:51:03 +01:00
Fixed queued items in crafting stations not being claimable
This commit is contained in:
parent
998d4cd33a
commit
8acd88589c
@ -188,7 +188,7 @@ public class CraftingStationView extends PluginInventory {
|
||||
PlayerUseCraftingStationEvent called = new PlayerUseCraftingStationEvent(data, station, recipe,
|
||||
PlayerUseCraftingStationEvent.StationAction.CRAFTING_QUEUE);
|
||||
Bukkit.getPluginManager().callEvent(called);
|
||||
if (!called.isCancelled())
|
||||
if (called.isCancelled())
|
||||
return;
|
||||
|
||||
data.getCrafting().getQueue(station).remove(recipeInfo);
|
||||
@ -200,7 +200,7 @@ public class CraftingStationView extends PluginInventory {
|
||||
if (recipe.hasOption(Recipe.RecipeOption.OUTPUT_ITEM))
|
||||
new SmartGive(getPlayer()).give(craftedItem);
|
||||
|
||||
/**
|
||||
/*
|
||||
* If the recipe is not ready, cancel the recipe and give the
|
||||
* ingredients back to the player
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user