diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-06 20:47:14 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-06 20:47:14 +0800 |
| commit | 87330e70a71b36ce9c9b59bc3f1b8e6670d0a385 (patch) | |
| tree | d59478a252703e752082cb774e31de32fd96654c /src/main/java/me/shedaniel/plugin/crafting | |
| parent | 0ad3f7821fd819b43b58720de6713ed8bb8c9a8d (diff) | |
| download | RoughlyEnoughItems-87330e70a71b36ce9c9b59bc3f1b8e6670d0a385.tar.gz RoughlyEnoughItems-87330e70a71b36ce9c9b59bc3f1b8e6670d0a385.tar.bz2 RoughlyEnoughItems-87330e70a71b36ce9c9b59bc3f1b8e6670d0a385.zip | |
Close #6
Diffstat (limited to 'src/main/java/me/shedaniel/plugin/crafting')
| -rwxr-xr-x | src/main/java/me/shedaniel/plugin/crafting/VanillaCraftingCategory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/plugin/crafting/VanillaCraftingCategory.java b/src/main/java/me/shedaniel/plugin/crafting/VanillaCraftingCategory.java index 2c6d48a08..50fa4ad1e 100755 --- a/src/main/java/me/shedaniel/plugin/crafting/VanillaCraftingCategory.java +++ b/src/main/java/me/shedaniel/plugin/crafting/VanillaCraftingCategory.java @@ -132,6 +132,7 @@ public class VanillaCraftingCategory implements DisplayCategoryCraftable<Vanilla ((IMixinRecipeBookGui) (((CraftingTableGui) gui).getRecipeBookGui())).getGhostSlots().reset(); else if (gui.getClass().isAssignableFrom(PlayerInventoryGui.class)) ((IMixinRecipeBookGui) (((PlayerInventoryGui) gui).getRecipeBookGui())).getGhostSlots().reset(); + else return false; MinecraftClient.getInstance().interactionManager.clickRecipe(MinecraftClient.getInstance().player.container.syncId, recipe.getRecipe(), Gui.isShiftPressed()); return true; } @@ -140,7 +141,6 @@ public class VanillaCraftingCategory implements DisplayCategoryCraftable<Vanilla public void registerAutoCraftButton(List<Control> control, RecipeGui recipeGui, Gui parentGui, VanillaCraftingRecipe recipe, int number) { SmallButton button = new SmallButton(78, 75 + 6 + 36 + number * 75, 10, 10, "+"); button.setOnClick(mouse -> { - System.out.println(parentGui.getClass().getName()); recipeGui.close(); MinecraftClient.getInstance().openGui(parentGui); return canAutoCraftHere(parentGui.getClass(), recipe) && performAutoCraft(parentGui, recipe); |
