Skip to content

Commit

Permalink
Merge branch 'master' into stats
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman authored Aug 4, 2024
2 parents addddec + 1e29ee4 commit 78004ad
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 8 deletions.
11 changes: 6 additions & 5 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ dependencies {

compileOnly("com.gtnewhorizons.retrofuturabootstrap:RetroFuturaBootstrap:1.0.2") { transitive = false }

transformedMod("com.github.GTNewHorizons:NotEnoughItems:2.6.14-GTNH:dev") // force a more up-to-date NEI version
transformedModCompileOnly("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-415-GTNH")
transformedMod("com.github.GTNewHorizons:NotEnoughItems:2.6.19-GTNH:dev") // force a more up-to-date NEI version
transformedModCompileOnly("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-423-GTNH")
transformedModCompileOnly("com.github.GTNewHorizons:Baubles:1.0.4:dev")
// Transitive updates to make runClient17 work
transformedModCompileOnly("com.github.GTNewHorizons:ForgeMultipart:1.5.0:dev")
transformedModCompileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.48.107:dev")
transformedModCompileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.48.123:dev")
transformedModCompileOnly("com.github.GTNewHorizons:harvestcraft:1.2.1-GTNH:dev")
transformedModCompileOnly("com.github.GTNewHorizons:HungerOverhaul:1.1.0-GTNH:dev")
transformedModCompileOnly("com.github.GTNewHorizons:MrTJPCore:1.2.1:dev") // Do not update, fixed afterwards
transformedModCompileOnly("com.github.GTNewHorizons:Railcraft:9.15.11:dev") { exclude group: "thaumcraft", module: "Thaumcraft" }
transformedModCompileOnly("com.github.GTNewHorizons:TinkersConstruct:1.12.5-GTNH:dev")
transformedModCompileOnly("com.github.GTNewHorizons:TinkersConstruct:1.12.6-GTNH:dev")
transformedModCompileOnly(rfg.deobf("curse.maven:bibliocraft-228027:2423369"))
transformedModCompileOnly("curse.maven:biomes-o-plenty-220318:2499612")
transformedModCompileOnly("curse.maven:cofh-core-69162:2388751")
Expand All @@ -44,7 +44,7 @@ dependencies {
transformedModCompileOnly(rfg.deobf("curse.maven:glibys-voice-chat-225110:2301492"))

transformedModCompileOnly(rfg.deobf("curse.maven:automagy-222153:2285272"))
transformedModCompileOnly("com.github.GTNewHorizons:Galacticraft:3.2.0-GTNH:dev")
transformedModCompileOnly("com.github.GTNewHorizons:Galacticraft:3.2.1-GTNH:dev")
transformedModCompileOnly("curse.maven:minechem-368422:2905830")
transformedModCompileOnly("curse.maven:thermal-dynamics-227443:2388756")
transformedModCompileOnly("curse.maven:thermal-expansion-69163:2388759")
Expand All @@ -57,6 +57,7 @@ dependencies {
transformedModCompileOnly(deobfNotch("https://mediafiles.forgecdn.net/files/2462/146/mod_voxelMap_1.7.0b_for_1.7.10.litemod"))
transformedModCompileOnly(rfg.deobf("curse.maven:xaeros-world-map-317780:4716737"))
transformedModCompileOnly(deobf("https://forum.industrial-craft.net/core/attachment/4316-advancedsolarpanel-1-7-10-3-5-1-jar/"))
transformedModCompileOnly(rfg.deobf("curse.maven:candycraft-251118:2330488"))

runtimeOnly(deobf("https://github.com/makamys/CoreTweaks/releases/download/0.3.3.2/CoreTweaks-1.7.10-0.3.3.2+nomixin.jar"))
}
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ accessTransformersFile = hodgepodge_at.cfg
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = true

# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
# Mixin classes will have access to "main" classes, but not the other way around.
separateMixinSourceSet =

# Adds some debug arguments like verbose output and class export.
usesMixinDebug = true

Expand Down
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-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-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 '1.0.24'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.25'
}


Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ public class FixesConfig {
@Config.RequiresMcRestart
public static boolean removeBOPWarning;

// Candycraft

@Config.Comment("Fix NPE when interacting with sugar block")
@Config.DefaultBoolean(true)
@Config.RequiresMcRestart
public static boolean fixCandycraftBlockSugarNPE;

// Extra TiC

@Config.Comment("Disable ExtraTic's Integration with Metallurgy 3 Precious Materials Module: (Brass, Silver, Electrum & Platinum)")
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/mitchej123/hodgepodge/mixins/Mixins.java
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,12 @@ public enum Mixins {
DISABLE_MODDED_CHUNK_POPULATION(new Builder("Disable all other mod chunk population (e.g. Natura clouds")
.setPhase(Phase.EARLY).addMixinClasses("minecraft.MixinChunkProviderServer_DisableModGeneration")
.addTargetedMod(TargetedMod.VANILLA).setSide(Side.BOTH)
.setApplyIf(() -> TweaksConfig.disableModdedChunkPopulation));
.setApplyIf(() -> TweaksConfig.disableModdedChunkPopulation)),

// Candycraft
FIX_SUGARBLOCK_NPE(new Builder("Fix NPE when interacting with sugar block")
.addMixinClasses("candycraft.MixinBlockSugar").setPhase(Phase.LATE).setSide(Side.BOTH)
.setApplyIf(() -> FixesConfig.fixCandycraftBlockSugarNPE).addTargetedMod(TargetedMod.CANDYCRAFT));

private final List<String> mixinClasses;
private final List<TargetedMod> targetedMods;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public enum TargetedMod {
BOP("BiomesOPlenty", null, "BiomesOPlenty"),
BUGTORCH("BugTorch", "jss.bugtorch.mixinplugin.BugTorchEarlyMixins", "bugtorch"),
BUKKIT("Bukkit/Thermos", "Bukkit", null),
CANDYCRAFT("candycraftmod", null, "candycraftmod"),
COFH_CORE("CoFHCore", "cofh.asm.LoadingPlugin", "CoFHCore"),
DAMAGE_INDICATORS("Damage Indicators", null, "DamageIndicatorsMod"),
EXTRATIC("ExtraTiC", null, "ExtraTiC"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.mitchej123.hodgepodge.mixins.late.candycraft;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import com.valentin4311.candycraftmod.BlockSugar;

@Mixin(BlockSugar.class)
public class MixinBlockSugar {

@Inject(at = @At("HEAD"), cancellable = true, method = "onBlockActivated")
private void hodgepodge$fixNPE(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer,
int par6, float par7, float par8, float par9, CallbackInfoReturnable<Boolean> cir) {
if (par5EntityPlayer.getCurrentEquippedItem() == null) {
cir.setReturnValue(false);
}
}

}

0 comments on commit 78004ad

Please sign in to comment.