diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-03-08 17:49:29 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-03-08 17:49:29 +0800 |
| commit | 2e42d6872548241691e28d913681ff6950a4aba9 (patch) | |
| tree | febee27d24f43b74765684269edae240456a6b74 /src/main/java/me/shedaniel/rei/client/ClientHelper.java | |
| parent | 20a0d31befa8120688b77faf189748ca4c0b9e07 (diff) | |
| download | RoughlyEnoughItems-2e42d6872548241691e28d913681ff6950a4aba9.tar.gz RoughlyEnoughItems-2e42d6872548241691e28d913681ff6950a4aba9.tar.bz2 RoughlyEnoughItems-2e42d6872548241691e28d913681ff6950a4aba9.zip | |
Catch StackOverflow
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/ClientHelper.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/ClientHelper.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/ClientHelper.java b/src/main/java/me/shedaniel/rei/client/ClientHelper.java index ad14db62f..660fa8709 100644 --- a/src/main/java/me/shedaniel/rei/client/ClientHelper.java +++ b/src/main/java/me/shedaniel/rei/client/ClientHelper.java @@ -77,7 +77,7 @@ public class ClientHelper implements ClientModInitializer { } public static void sendDeletePacket() { - if (GuiHelper.getLastContainerScreen() instanceof CreativePlayerInventoryScreen) { + if (ScreenHelper.getLastContainerScreen() instanceof CreativePlayerInventoryScreen) { MinecraftClient.getInstance().player.inventory.setCursorStack(ItemStack.EMPTY); return; } @@ -107,14 +107,14 @@ public class ClientHelper implements ClientModInitializer { } } - public static boolean executeRecipeKeyBind(ContainerScreenOverlay overlay, ItemStack stack) { + public static boolean executeRecipeKeyBind(ItemStack stack) { Map<RecipeCategory, List<RecipeDisplay>> map = RecipeHelper.getInstance().getRecipesFor(stack); if (map.keySet().size() > 0) MinecraftClient.getInstance().openScreen(new RecipeViewingScreen(MinecraftClient.getInstance().window, map)); return map.keySet().size() > 0; } - public static boolean executeUsageKeyBind(ContainerScreenOverlay overlay, ItemStack stack) { + public static boolean executeUsageKeyBind(ItemStack stack) { Map<RecipeCategory, List<RecipeDisplay>> map = RecipeHelper.getInstance().getUsagesFor(stack); if (map.keySet().size() > 0) MinecraftClient.getInstance().openScreen(new RecipeViewingScreen(MinecraftClient.getInstance().window, map)); @@ -135,7 +135,7 @@ public class ClientHelper implements ClientModInitializer { return inventoryStacks; } - public static boolean executeViewAllRecipesKeyBind(ContainerScreenOverlay lastOverlay) { + public static boolean executeViewAllRecipesKeyBind() { Map<RecipeCategory, List<RecipeDisplay>> map = RecipeHelper.getInstance().getAllRecipes(); if (map.keySet().size() > 0) MinecraftClient.getInstance().openScreen(new RecipeViewingScreen(MinecraftClient.getInstance().window, map)); |
