Don't require holding shift to move items when overlaying recipe (#348)

* updateBuildScript

* Remove redundant public modifier

* Don't require holding shift to move items when overlaying recipe
This commit is contained in:
miozune authored and GitHub committed 2023-02-09 11:21:30 +01:00
1 parent 6d0f83c499
commit e20756a196
5 files changed
+182 -9

No files matched your search

@@ -271,6 +271,10 @@ public class NEIClientConfig {
.getBooleanValue(true);
API.addOption(new OptionToggleButton("inventory.jei_style_cycled_ingredients", true));
tag.getTag("inventory.shift_overlay_recipe")
.setComment("Require holding shift to move items when overlaying recipe").getBooleanValue(false);
API.addOption(new OptionToggleButton("inventory.shift_overlay_recipe", true));
tag.getTag("tools.handler_load_from_config").setComment("ADVANCED: Load handlers from config")
.getBooleanValue(false);
API.addOption(new OptionToggleButton("tools.handler_load_from_config", true) {
@@ -578,6 +582,10 @@ public class NEIClientConfig {
return getBooleanSetting("inventory.jei_style_cycled_ingredients");
}
public static boolean requireShiftForOverlayRecipe() {
return getBooleanSetting("inventory.shift_overlay_recipe");
}
public static boolean isEnabled() {
return enabledOverride && getBooleanSetting("inventory.widgetsenabled");
}