diff options
| author | Jakub <53441451+kuba6000@users.noreply.github.com> | 2023-12-04 13:04:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 13:04:47 +0100 |
| commit | 2ee2ff6d97e81340e3209ec46e675ec412112867 (patch) | |
| tree | 5e1a6ae3385c701438e573dae60fd750cf68b27a /src/main/java/kubatech/loaders | |
| parent | 1ef020a8291957fdd470c76165d279398329e322 (diff) | |
| download | GT5-Unofficial-2ee2ff6d97e81340e3209ec46e675ec412112867.tar.gz GT5-Unofficial-2ee2ff6d97e81340e3209ec46e675ec412112867.tar.bz2 GT5-Unofficial-2ee2ff6d97e81340e3209ec46e675ec412112867.zip | |
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 <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/kubatech/loaders')
| -rw-r--r-- | src/main/java/kubatech/loaders/RecipeLoader.java | 13 |
1 files changed, 10 insertions, 3 deletions
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<? extends MetaTileEntity> 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<? extends MetaTileEntity> 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( |
