Skip to content

Commit c9d94ba

Browse files
authored
Merge pull request #297 from GTModpackTeam/fix-296
2 parents d48b549 + c789977 commit c9d94ba

File tree

15 files changed

+98
-73
lines changed

15 files changed

+98
-73
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
mixin-booter(required)
9292
gregtech-ce-unofficial(required)
9393
gregicality-multiblocks(required)
94+
implosionnobomb(recommended)
9495
ae2-extended-life(recommended)
9596
ae-additions-extra-cells-2-fork(recommended)
9697
nae2(recommended)

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v2.3.1
2+
- Hotfix a mistake when splitting into INBs [#296](https://github.com/GTModpackTeam/GTExpert-Core/pull/296)
3+
4+
* * *
5+
16
# v2.3.0
27
- Separate Electric Implosion Compressor changes to [ImplosionNoBomb](https://www.curseforge.com/minecraft/mc-mods/implosionnobomb)
38
- Thanks to @MrKono for his support!!

dependencies.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ dependencies {
5858
devOnlyNonPublishable(rfg.deobf("curse.maven:ae2-extended-life-570458:5411078")) // AE2UEL 0.56.6
5959
}
6060

61+
// Debug ImplosionNoBomb
62+
compileOnly rfg.deobf("curse.maven:implosionnobomb-1094386:5680426") // ImplosionNoBomb 1.0.0
63+
if (project.debug_all.toBoolean() || project.debug_inb.toBoolean()) {
64+
runtimeOnlyNonPublishable rfg.deobf("curse.maven:implosionnobomb-1094386:5680426")
65+
}
66+
6167
// Debug AE Additions
6268
if (project.debug_all.toBoolean() || project.debug_aea.toBoolean()) {
6369
runtimeOnlyNonPublishable rfg.deobf("curse.maven:ae-additions-extra-cells-2-fork-493962:3814371") // AEAdditions 1.3.8

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ modGroup = gtexpert
77

88
# Version of your mod.
99
# This field can be left empty if you want your mod's version to be determined by the latest git tag instead.
10-
modVersion = 2.3.0-beta
10+
modVersion = 2.3.0-beta
1111

1212
# Whether to use the old jar naming structure (modid-mcversion-version) instead of the new version (modid-version)
1313
includeMCVersionJar = true
@@ -27,6 +27,7 @@ useAE2uelExtended = false
2727

2828
# Debug mod compatibility
2929
debug_all = false
30+
debug_inb = false
3031
debug_aea = false
3132
debug_nae2 = false
3233
debug_extracpus = false

src/main/java/gtexpert/GTExpertMod.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
version = Tags.VERSION,
3636
updateJSON = "https://forge.curseupdate.com/851103/gtexpert",
3737
dependencies = GTInternalTags.DEP_VERSION_STRING + "required-after:" + Mods.Names.MIXINBOOTER + ";" +
38-
"required-after:" + Mods.Names.GREGICALITY_MULTIBLOCKS + ";" +
38+
"required-after:" + Mods.Names.GREGICALITY_MULTIBLOCKS + ";" + "after:" + Mods.Names.IMPLOSION_NO_BOMB +
39+
";" +
3940
"after:" + Mods.Names.GREGTECH_FOOD_OPTION + ";" + "after:" + Mods.Names.APPLIED_ENERGISTICS2 + ";" +
4041
"after:" + Mods.Names.AE_ADDITIONS + ";" + "after:" + Mods.Names.AE2_FLUID_CRAFTING + ";" +
4142
"after:" + Mods.Names.NEEVES_AE2 + ";" + "after:" + Mods.Names.EXTRA_CPUS + ";" +

src/main/java/gtexpert/api/recipes/GTERecipeMaps.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
package gtexpert.api.recipes;
22

3-
import static gregtech.api.GTValues.*;
4-
import static gregtech.api.unification.ore.OrePrefix.dust;
5-
63
import net.minecraft.init.SoundEvents;
74

85
import gregtech.api.gui.GuiTextures;
96
import gregtech.api.gui.widgets.ProgressWidget;
107
import gregtech.api.recipes.RecipeMap;
11-
import gregtech.api.recipes.RecipeMaps;
128
import gregtech.api.recipes.builders.SimpleRecipeBuilder;
13-
import gregtech.api.unification.material.Materials;
149
import gregtech.core.sound.GTSoundEvents;
1510

1611
import gtexpert.api.gui.GTEGuiTextures;
@@ -52,20 +47,6 @@ public class GTERecipeMaps {
5247
.setProgressBar(GuiTextures.PROGRESS_BAR_GAS_COLLECTOR, ProgressWidget.MoveType.HORIZONTAL)
5348
.setSound(GTSoundEvents.COOLING);
5449

55-
@ZenProperty
56-
public static final RecipeMap<SimpleRecipeBuilder> ELECTRIC_IMPLOSION_COMPRESSOR_RECIPES = new RecipeMap<>(
57-
"electric_implosion_compressor", 6, 2, 0, 0,
58-
new SimpleRecipeBuilder().duration(1).EUt(VA[UV]).chancedOutput(dust, Materials.DarkAsh, 2500, 0), false)
59-
.setSlotOverlay(false, false, false, GuiTextures.IMPLOSION_OVERLAY_2)
60-
.setSlotOverlay(false, false, false, GuiTextures.IMPLOSION_OVERLAY_2)
61-
.setSlotOverlay(false, false, false, GuiTextures.IMPLOSION_OVERLAY_2)
62-
.setSlotOverlay(false, false, false, GuiTextures.IMPLOSION_OVERLAY_2)
63-
.setSlotOverlay(false, false, false, GuiTextures.IMPLOSION_OVERLAY_2)
64-
.setSlotOverlay(false, false, true, GuiTextures.IMPLOSION_OVERLAY_2)
65-
.setSlotOverlay(true, false, true, GuiTextures.DUST_OVERLAY)
66-
.setSound(SoundEvents.ENTITY_GENERIC_EXPLODE)
67-
.setSmallRecipeMap(RecipeMaps.IMPLOSION_RECIPES);
68-
6950
@ZenProperty
7051
public static final RecipeMap<SimpleRecipeBuilder> STEAM_MIXER_RECIPES = new RecipeMap<>(
7152
"steam_mixer", 6, 2, 0, 0, new SimpleRecipeBuilder(), false)

src/main/java/gtexpert/api/util/Mods.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public enum Mods {
7777
GregTechExpertCore(GTEValues.MODID),
7878
GroovyScript(Names.GROOVY_SCRIPT),
7979
HWYLA(Names.HWYLA),
80+
ImplosionNoBomb(Names.IMPLOSION_NO_BOMB),
8081
InventoryTweaks(Names.INVENTORY_TWEAKS),
8182
JourneyMap(Names.JOURNEY_MAP),
8283
JustEnoughItems(Names.JUST_ENOUGH_ITEMS),
@@ -171,6 +172,7 @@ public static class Names {
171172
public static final String GREGTECH_FOOD_OPTION = "gregtechfoodoption";
172173
public static final String GROOVY_SCRIPT = "groovyscript";
173174
public static final String HWYLA = "hwyla";
175+
public static final String IMPLOSION_NO_BOMB = "inb";
174176
public static final String INVENTORY_TWEAKS = "inventorytweaks";
175177
public static final String JOURNEY_MAP = "journeymap";
176178
public static final String JUST_ENOUGH_ITEMS = "jei";

src/main/java/gtexpert/integration/ae/recipes/AEMaterialsRecipe.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static gregtech.api.GTValues.*;
44
import static gregtech.api.unification.ore.OrePrefix.*;
55
import static gtexpert.integration.deda.recipes.DraconicMaterialsRecipe.ABFDurationMultiplier;
6-
import static gtexpert.loaders.recipe.handlers.GTEMaterialRecipeHandler.addImplosionRecipes;
76

87
import gregtech.api.recipes.ModHandler;
98
import gregtech.api.recipes.RecipeMaps;
@@ -23,6 +22,7 @@
2322
import gtexpert.api.GTEValues;
2423
import gtexpert.api.unification.material.GTEMaterials;
2524
import gtexpert.api.util.Mods;
25+
import gtexpert.loaders.recipe.handlers.GTEImplosionRecipeHandler;
2626

2727
public class AEMaterialsRecipe {
2828

@@ -245,7 +245,8 @@ public static void init() {
245245
.chancedOutput(Mods.AppliedEnergistics2.getItem("material", 1, 1), 7000, 1000)
246246
.duration(1200).EUt(24)
247247
.buildAndRegister();
248-
addImplosionRecipes(GTEMaterials.ChargedCertusQuartz, Mods.AppliedEnergistics2.getItem("material", 3, 1));
248+
GTEImplosionRecipeHandler.add(GTEMaterials.ChargedCertusQuartz,
249+
Mods.AppliedEnergistics2.getItem("material", 3, 1));
249250

250251
// Lens
251252
RecipeMaps.LATHE_RECIPES.recipeBuilder()
@@ -295,7 +296,7 @@ public static void init() {
295296
.chancedOutput(Mods.AppliedEnergistics2.getItem("material", 1, 7), 7000, 1000)
296297
.duration(1200).EUt(24)
297298
.buildAndRegister();
298-
addImplosionRecipes(GTEMaterials.Fluix, Mods.AppliedEnergistics2.getItem("material", 3, 7));
299+
GTEImplosionRecipeHandler.add(GTEMaterials.Fluix, Mods.AppliedEnergistics2.getItem("material", 3, 7));
299300

300301
// Block
301302
RecipeMaps.COMPRESSOR_RECIPES.recipeBuilder()

src/main/java/gtexpert/integration/deda/DEDAModule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,8 @@ public void registerRecipesLowest(RegistryEvent.Register<IRecipe> event) {
5151
// Draconic upgrade recipes
5252
DraconicTierupRecipe.init();
5353
DraconicUpgradeRecipe.init();
54+
55+
if (!Mods.ImplosionNoBomb.isModLoaded()) return;
56+
DraconicImplosionMaterialsRecipe.init();
5457
}
5558
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package gtexpert.integration.deda.recipes;
2+
3+
import static gregtech.api.unification.ore.OrePrefix.block;
4+
5+
import com.brandon3055.draconicevolution.DEFeatures;
6+
import com.github.gtexpert.inb.api.recipes.INBRecipeMaps;
7+
8+
import gtexpert.api.unification.material.GTEMaterials;
9+
10+
public class DraconicImplosionMaterialsRecipe {
11+
12+
public static void init() {
13+
INBRecipeMaps.ELECTRIC_IMPLOSION_COMPRESSOR_RECIPES.recipeBuilder()
14+
.input(DEFeatures.dragonHeart, 1)
15+
.input(block, GTEMaterials.Draconium, 4)
16+
.output(block, GTEMaterials.AwakenedDraconium, 3)
17+
.buildAndRegister();
18+
}
19+
}

0 commit comments

Comments
 (0)