aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/utils
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-03-16 10:30:26 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-03-16 10:30:26 +0800
commit2405e96d889341b82d00a9103e688d54713f2ce3 (patch)
tree54abc6704a56c691bec973c533cefcca77c913d4 /src/main/java/me/shedaniel/rei/utils
parentb004addc44b1fff0fd83cf998aa618443e4e37ca (diff)
downloadRoughlyEnoughItems-2405e96d889341b82d00a9103e688d54713f2ce3.tar.gz
RoughlyEnoughItems-2405e96d889341b82d00a9103e688d54713f2ce3.tar.bz2
RoughlyEnoughItems-2405e96d889341b82d00a9103e688d54713f2ce3.zip
Better Widgets
Diffstat (limited to 'src/main/java/me/shedaniel/rei/utils')
-rw-r--r--src/main/java/me/shedaniel/rei/utils/ClothRegistry.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/me/shedaniel/rei/utils/ClothRegistry.java b/src/main/java/me/shedaniel/rei/utils/ClothRegistry.java
index 3879feded..d30154409 100644
--- a/src/main/java/me/shedaniel/rei/utils/ClothRegistry.java
+++ b/src/main/java/me/shedaniel/rei/utils/ClothRegistry.java
@@ -2,13 +2,10 @@ package me.shedaniel.rei.utils;
import me.shedaniel.cloth.api.EventPriority;
import me.shedaniel.cloth.hooks.ClothHooks;
-import me.shedaniel.cloth.hooks.ClothModMenuHooks;
import me.shedaniel.rei.RoughlyEnoughItemsCore;
import me.shedaniel.rei.api.TabGetter;
-import me.shedaniel.rei.client.ClientHelper;
import me.shedaniel.rei.client.RecipeHelperImpl;
import me.shedaniel.rei.client.ScreenHelper;
-import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.ContainerScreen;
import net.minecraft.client.gui.ingame.CreativePlayerInventoryScreen;
import net.minecraft.client.gui.widget.RecipeBookButtonWidget;
@@ -17,14 +14,6 @@ import net.minecraft.item.ItemGroup;
public class ClothRegistry {
public static void register() {
- Runnable configRunnable = () -> ClientHelper.openConfigWindow(MinecraftClient.getInstance().currentScreen, false);
- ClothModMenuHooks.CONFIG_BUTTON_EVENT.registerListener(event -> {
- if (event.getModContainer() != null && event.getModContainer().getMetadata().getId().equalsIgnoreCase("roughlyenoughitems")) {
- event.setEnabled(true);
- event.setClickedRunnable(configRunnable);
- event.setCancelled(true);
- }
- }, EventPriority.LOWEST);
ClothHooks.CLIENT_SYNC_RECIPES.registerListener(event -> {
((RecipeHelperImpl) RoughlyEnoughItemsCore.getRecipeHelper()).recipesLoaded(event.getManager());
});