aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dependencies.gradle4
-rw-r--r--gradle.properties12
-rw-r--r--settings.gradle2
-rw-r--r--src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java12
-rw-r--r--src/main/java/goodgenerator/main/GoodGenerator.java7
5 files changed, 21 insertions, 16 deletions
diff --git a/dependencies.gradle b/dependencies.gradle
index 24dc506608..061fb8544a 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -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')
diff --git a/gradle.properties b/gradle.properties
index d7087d420e..c0555db2e3 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -50,16 +50,16 @@ 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
@@ -67,7 +67,7 @@ gradleTokenModName = GRADLETOKEN_MODNAME
# 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.
@@ -188,4 +188,4 @@ curseForgeRelations =
# ideaCheckSpotlessOnBuild = true
# Non-GTNH properties
-gradleTokenGroupName = GRADLETOKEN_GROUPNAME
+#gradleTokenGroupName = GRADLETOKEN_GROUPNAME
diff --git a/settings.gradle b/settings.gradle
index e8946ada27..3b6c62d046 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
- id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.8'
+ id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.9'
}
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java b/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java
index 93faf16968..af41493ba3 100644
--- a/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java
+++ b/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java
@@ -2,6 +2,7 @@ package goodgenerator.blocks.tileEntity.base;
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;
@@ -85,17 +86,20 @@ public abstract class LargeFusionComputer extends GT_MetaTileEntity_TooltipMulti
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();
}
diff --git a/src/main/java/goodgenerator/main/GoodGenerator.java b/src/main/java/goodgenerator/main/GoodGenerator.java
index 8705b58669..fcc5ff52d9 100644
--- a/src/main/java/goodgenerator/main/GoodGenerator.java
+++ b/src/main/java/goodgenerator/main/GoodGenerator.java
@@ -13,6 +13,7 @@ import cpw.mods.fml.common.event.FMLPostInitializationEvent;
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;
@@ -32,9 +33,9 @@ import goodgenerator.tabs.MyTabs;
+ "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");