Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 8 additions & 20 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
// Add your dependencies here

dependencies {
api("com.github.GTNewHorizons:GTNHLib:0.9.41:dev")
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
api('com.github.GTNewHorizons:Baubles-Expanded:2.2.6-GTNH:dev')
api("com.github.GTNewHorizons:GTNHLib:0.9.31:dev")
api("com.github.GTNewHorizons:GTNHLib:0.10.8:dev")
api("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
api("com.github.GTNewHorizons:Baubles-Expanded:2.2.21-GTNH:dev")

compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.12:dev')
compileOnly('com.github.GTNewHorizons:Botania:1.13.15-GTNH:api')
compileOnly("com.github.GTNewHorizons:AppleCore:3.3.9:dev")
compileOnly("com.github.GTNewHorizons:BloodMagic:1.9.4:dev")
compileOnly("com.github.GTNewHorizons:Botania:1.13.21-GTNH:api")
compileOnly("com.github.GTNewHorizons:AppleCore:3.3.11:dev")
compileOnly("curse.maven:ee3-65509:2305023")


compileOnly('curse.maven:ee3-65509:2305023')

// deps may transitively add Baubles, so we replace it
project.getConfigurations()
.all(c -> {
final DependencySubstitutions ds = c.getResolutionStrategy()
.getDependencySubstitution();
ds.substitute(ds.module("com.github.GTNewHorizons:Baubles"))
.using(ds.module("com.github.GTNewHorizons:Baubles-Expanded:2.2.6-GTNH"))
.withClassifier("dev")
.because("Baubles-Expanded replaces Baubles");
});
runtimeOnlyNonPublishable("com.github.GTNewHorizons:AspectRecipeIndex:1.1.0:dev")
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
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 '2.0.20'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,22 @@ public void registerIcons(IIconRegister ir) {
@SideOnly(Side.CLIENT)
@Override
public IIcon getIconFromDamage(int meta) {
if (meta >= icon.length) meta = 0;
return this.icon[meta];
}

@SideOnly(Side.CLIENT)
@Override
public void getSubItems(Item item, CreativeTabs xCreativeTabs, List list) {
public void getSubItems(Item item, CreativeTabs xCreativeTabs, List<ItemStack> list) {
for (int x = 0; x < types.length; x++) {
list.add(new ItemStack(this, 1, x));
}
}

@Override
public String getUnlocalizedName(ItemStack stack) {
return super.getUnlocalizedName() + "." + types[stack.getItemDamage()];
int meta = stack.getItemDamage();
if (meta >= types.length) meta = 0;
return super.getUnlocalizedName() + "." + types[meta];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void registerIcons(IIconRegister ir) {
@SideOnly(Side.CLIENT)
@Override
public IIcon getIconFromDamage(int meta) {
if (meta >= icon.length) meta = 0;
return this.icon[meta];
}

Expand Down Expand Up @@ -97,6 +98,8 @@ private static ItemStack buildWand(WandCap cap, WandRod rod) {

@Override
public String getUnlocalizedName(ItemStack stack) {
return super.getUnlocalizedName() + "." + types[stack.getItemDamage()];
int meta = stack.getItemDamage();
if (meta >= types.length) meta = 0;
return super.getUnlocalizedName() + "." + types[meta];
}
}