From 2ee2ff6d97e81340e3209ec46e675ec412112867 Mon Sep 17 00:00:00 2001 From: Jakub <53441451+kuba6000@users.noreply.github.com> Date: Mon, 4 Dec 2023 13:04:47 +0100 Subject: Rework GUIs (#108) * Update dependencies.gradle * Move mod id and name to the code * New EEC gui * Configuration buttons and tooltip delays * a * test * Move EIG GUI to a new class * Use the new inventory class in MApiary * Update DynamicInventory.java * Fix * Inventory slots * Update dependencies.gradle * test * MAapiary switchable screen + progress * Recipe error results + fixes * Remove commented code --------- Co-authored-by: Martin Robertz --- src/main/java/kubatech/loaders/RecipeLoader.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/main/java/kubatech/loaders') diff --git a/src/main/java/kubatech/loaders/RecipeLoader.java b/src/main/java/kubatech/loaders/RecipeLoader.java index b8e8abfc8f..a9492a6535 100644 --- a/src/main/java/kubatech/loaders/RecipeLoader.java +++ b/src/main/java/kubatech/loaders/RecipeLoader.java @@ -165,15 +165,22 @@ public class RecipeLoader { } private static boolean registerMTE(ItemList item, Class mte, String aName, - String aNameRegional, boolean dep) { + String aNameRegional, boolean... deps) { if (MTEID > MTEIDMax) throw new RuntimeException("MTE ID's"); - registerMTEUsingID(MTEID, item, mte, aName, aNameRegional, dep); + boolean dep = registerMTEUsingID(MTEID, item, mte, aName, aNameRegional, deps); MTEID++; return dep; } private static boolean registerMTEUsingID(int ID, ItemList item, Class mte, String aName, - String aNameRegional, boolean dep) { + String aNameRegional, boolean... deps) { + boolean dep = true; + for (boolean b : deps) { + if (!b) { + dep = false; + break; + } + } if (dep) { try { item.set( -- cgit