mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-21 04:32:37 +00:00
errata(recipe): upgrade template
Condition the upgrade template's workbench recipe registration, to its config enablement.
This commit is contained in:
1 file changed
+9
-8
@@ -387,6 +387,15 @@ public class ModRecipes {
|
||||
}
|
||||
|
||||
private static void upgradeTemplateRecipes() {
|
||||
if (!(config.cache.enableIndicatorUpgrades
|
||||
|| config.cache.enableLockUpgrades
|
||||
|| config.cache.enablePersonalUpgrades
|
||||
|| config.cache.enableRedstoneUpgrades
|
||||
|| config.cache.enableShroudUpgrades
|
||||
|| config.cache.enableSortingUpgrades
|
||||
|| config.cache.enableStorageUpgrades
|
||||
|| config.cache.enableVoidUpgrades)) return;
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.upgradeTemplate),
|
||||
new String[]{
|
||||
"sps",
|
||||
@@ -398,14 +407,6 @@ public class ModRecipes {
|
||||
'd', ORE_drawerBasic,
|
||||
't', ORE_craftingToolScrewdriver));
|
||||
|
||||
if (!(config.cache.enableIndicatorUpgrades
|
||||
|| config.cache.enableLockUpgrades
|
||||
|| config.cache.enablePersonalUpgrades
|
||||
|| config.cache.enableRedstoneUpgrades
|
||||
|| config.cache.enableShroudUpgrades
|
||||
|| config.cache.enableSortingUpgrades
|
||||
|| config.cache.enableStorageUpgrades
|
||||
|| config.cache.enableVoidUpgrades)) return;
|
||||
for (ItemStack drawer : drawerBasicW)
|
||||
RA.addAssemblerRecipe(new ItemStack[]{drawer, piston}, NF, upgradeTemplate, 1200, 16);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user