Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Compact fusion structure fixes (#236)
Browse files Browse the repository at this point in the history
* update bs+deps+address deprecation

* compact fusion autobuild fixes
  • Loading branch information
Lyfts authored Feb 10, 2024
1 parent 09d0d05 commit 45128e7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Add your dependencies here

dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.45:dev')
api('com.github.GTNewHorizons:bartworks:0.9.4:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.60:dev')
api('com.github.GTNewHorizons:bartworks:0.9.7:dev')
implementation('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
implementation('com.github.GTNewHorizons:GTplusplus:1.11.19:dev')

Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,24 @@ enableGenericInjection = false
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass =
generateGradleTokenClass = goodgenerator.Tags

# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = GRADLETOKEN_VERSION
gradleTokenVersion = VERSION

# [DEPRECATED] Mod ID replacement token.
gradleTokenModId = GRADLETOKEN_MODID
gradleTokenModId =

# [DEPRECATED] Mod name replacement token.
gradleTokenModName = GRADLETOKEN_MODNAME
gradleTokenModName =

# [DEPRECATED]
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...]).
# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile = GoodGenerator.java
replaceGradleTokenInFile =

# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
Expand Down Expand Up @@ -188,4 +188,4 @@ curseForgeRelations =
# ideaCheckSpotlessOnBuild = true

# Non-GTNH properties
gradleTokenGroupName = GRADLETOKEN_GROUPNAME
#gradleTokenGroupName = GRADLETOKEN_GROUPNAME
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pluginManagement {
}

plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.8'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.9'
}


Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
import static gregtech.api.enums.Textures.BlockIcons.*;
import static gregtech.api.util.GT_StructureUtility.filterByMTETier;
import static gregtech.api.util.GT_StructureUtility.ofFrame;
import static gregtech.api.util.GT_Utility.filterValidMTEs;

Expand Down Expand Up @@ -85,17 +86,20 @@ protected IStructureDefinition<LargeFusionComputer> computeValue(Class<?> type)
lazy(
x -> GT_HatchElementBuilder.<LargeFusionComputer>builder()
.atLeast(
GT_HatchElement.InputHatch,
GT_HatchElement.OutputHatch,
GT_HatchElement.InputBus)
GT_HatchElement.InputHatch.or(GT_HatchElement.InputBus),
GT_HatchElement.OutputHatch)
.adder(LargeFusionComputer::addFluidIO).casingIndex(x.textureIndex()).dot(1)
.hatchItemFilterAnd(
x2 -> filterByMTETier(x2.hatchTier(), Integer.MAX_VALUE))
.buildAndChain(x.getGlassBlock(), x.getGlassMeta())))
.addElement(
'E',
lazy(
x -> GT_HatchElementBuilder.<LargeFusionComputer>builder()
.atLeast(HatchElement.EnergyMulti.or(GT_HatchElement.Energy))
.anyOf(HatchElement.EnergyMulti.or(GT_HatchElement.Energy))
.adder(LargeFusionComputer::addEnergyInjector).casingIndex(x.textureIndex())
.hatchItemFilterAnd(
x2 -> filterByMTETier(x2.hatchTier(), Integer.MAX_VALUE))
.dot(2).buildAndChain(x.getCasingBlock(), x.getCasingMeta())))
.addElement('F', lazy(x -> ofFrame(x.getFrameBox()))).build();
}
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/goodgenerator/main/GoodGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import goodgenerator.Tags;
import goodgenerator.common.CommonProxy;
import goodgenerator.crossmod.thaumcraft.Research;
import goodgenerator.items.MyMaterial;
Expand All @@ -32,9 +33,9 @@
+ "after:dreamcraft;")
public final class GoodGenerator {

public static final String MOD_ID = "GRADLETOKEN_MODID";
public static final String MOD_NAME = "GRADLETOKEN_MODNAME";
public static final String VERSION = "GRADLETOKEN_VERSION";
public static final String MOD_ID = "GoodGenerator";
public static final String MOD_NAME = "Good Generator";
public static final String VERSION = Tags.VERSION;

public static final CreativeTabs GG = new MyTabs("Good Generator");

Expand Down

0 comments on commit 45128e7

Please sign in to comment.