From 8b29b9387a2888c81bdcee1ad3892a6f4a4b9741 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sun, 20 Oct 2019 00:04:18 +0200 Subject: [PATCH] !Extra constructor --- .../net/Indyuce/mmoitems/gui/CraftingStationView.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/Indyuce/mmoitems/gui/CraftingStationView.java b/src/main/java/net/Indyuce/mmoitems/gui/CraftingStationView.java index b89eef17..d5cb01a4 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/CraftingStationView.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/CraftingStationView.java @@ -40,6 +40,10 @@ public class CraftingStationView extends PluginInventory { private static final int[] slots = { 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25 }, queueSlots = { 38, 39, 40, 41, 42 }; private static final int[] fill = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 28, 29, 30, 31, 32, 33, 34 }; + public CraftingStationView(Player player, CraftingStation station) { + this(player, station, 1); + } + public CraftingStationView(Player player, CraftingStation station, int page) { super(player); @@ -153,11 +157,11 @@ public class CraftingStationView extends PluginInventory { String tag = item.getString("recipeId"); if (!tag.equals("")) { RecipeInfo recipe = getRecipe(tag); - if(event.isRightClick()) { + if (event.isRightClick()) { new CraftingStationPreview(player, station, recipe, page).open(); return; } - + processRecipe(recipe); updateData();