Update Buildscript (#3)

* Delete .gitmodules

* Update buildscript

* Finish conversion to unified buildscript

* Update build.gradle
This commit is contained in:
glowredman authored and GitHub committed 2022-01-29 08:57:17 +01:00
1 parent 645a8c78a8
commit 8989fdbb15
75 files changed
+1148 -837

No files matched your search

+1 -1
View File
@@ -4,6 +4,6 @@ public class ModProps {
public static final String NAME = "Mod Tweaker 2", name = NAME;
public static final String MODID = "modtweaker2", modid = MODID;
public static final String VERSION = "@modVersion@", version = VERSION;
public static final String VERSION = "GRADLETOKEN_VERSION", version = VERSION;
public static final String DEPENDENCIES = "required-after:MineTweaker3;after:Forestry@[4.1.0,);", dependencies = DEPENDENCIES;
}
@@ -5,6 +5,7 @@ import static modtweaker2.helpers.InputHelper.toStack;
import static modtweaker2.helpers.InputHelper.toStacks;
import static modtweaker2.helpers.StackHelper.matches;
import java.util.ArrayList;
import java.util.LinkedList;
import minetweaker.MineTweakerAPI;
@@ -83,7 +84,7 @@ public class Inscriber {
public static class Add extends BaseListAddition<IInscriberRecipe> {
public Add(IInscriberRecipe recipe) {
super(Inscriber.name, AEApi.instance().registries().inscriber().getRecipes());
super(Inscriber.name, new ArrayList<>(AEApi.instance().registries().inscriber().getRecipes()));
recipes.add(recipe);
}
@@ -158,7 +159,7 @@ public class Inscriber {
public static class Remove extends BaseListRemoval<IInscriberRecipe> {
public Remove(LinkedList<IInscriberRecipe> recipes) {
super(Inscriber.name, AEApi.instance().registries().inscriber().getRecipes(), recipes);
super(Inscriber.name, new ArrayList<>(AEApi.instance().registries().inscriber().getRecipes()), recipes);
}
@Override