diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-03-16 16:19:25 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-03-16 16:19:25 +0800 |
| commit | 9e990de7685960391d78ca2cca0ff68bebe1a8cd (patch) | |
| tree | 1ce7e36a326d11d0d278bb070df9ba7984515c01 /src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java | |
| parent | 921fbe77b6ebbbb7e5a78dc996ca5c98faf5fcc5 (diff) | |
| download | RoughlyEnoughItems-9e990de7685960391d78ca2cca0ff68bebe1a8cd.tar.gz RoughlyEnoughItems-9e990de7685960391d78ca2cca0ff68bebe1a8cd.tar.bz2 RoughlyEnoughItems-9e990de7685960391d78ca2cca0ff68bebe1a8cd.zip | |
4.0.13
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java b/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java index bf21bae6e..efedb7a35 100644 --- a/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java @@ -146,7 +146,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { @Override public void sendDeletePacket() { - if (ScreenHelper.getLastScreenWithHandler() instanceof CreativeInventoryScreen) { + if (ScreenHelper.getLastHandledScreen() instanceof CreativeInventoryScreen) { MinecraftClient.getInstance().player.inventory.setCursorStack(ItemStack.EMPTY); return; } @@ -257,7 +257,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer { screen = new VillagerRecipeViewingScreen(map, category); } else if (ConfigObject.getInstance().getRecipeScreenType() == RecipeScreenType.UNSET) { @Nullable Identifier finalCategory = category; - screen = new PreRecipeViewingScreen(ScreenHelper.getLastScreenWithHandler(), RecipeScreenType.UNSET, true, original -> { + screen = new PreRecipeViewingScreen(ScreenHelper.getLastHandledScreen(), RecipeScreenType.UNSET, true, original -> { ConfigObject.getInstance().setRecipeScreenType(original ? RecipeScreenType.ORIGINAL : RecipeScreenType.VILLAGER); ConfigManager.getInstance().saveConfig(); openRecipeViewingScreen(map, finalCategory, ingredientNotice, resultNotice); |
