From 1930941a6d544177dcd0d3ce1492c80503e6e716 Mon Sep 17 00:00:00 2001 From: Lyfts <127234178+Lyfts@users.noreply.github.com> Date: Sat, 4 May 2024 09:36:50 +0200 Subject: [PATCH 1/2] Add void miner support for everglades (#877) add void miner support for everglades Co-authored-by: Martin Robertz --- .../everglades/GTplusplus_Everglades.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java b/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java index a378919486..a5ffe1c7fc 100644 --- a/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java +++ b/src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java @@ -6,9 +6,12 @@ import java.awt.event.ActionListener; import java.io.File; +import net.minecraft.block.Block; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.common.config.Configuration; +import com.github.bartimaeusnek.crossmod.galacticgreg.GT_TileEntity_VoidMiner_Base; + import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; @@ -26,6 +29,7 @@ import gtPlusPlus.everglades.block.DarkWorldContentLoader; import gtPlusPlus.everglades.dimension.Dimension_Everglades; import gtPlusPlus.everglades.gen.gt.WorldGen_GT_Base; +import gtPlusPlus.everglades.gen.gt.WorldGen_GT_Ore_Layer; import gtPlusPlus.everglades.gen.gt.WorldGen_Ores; import gtPlusPlus.preloader.CORE_Preloader; import gtPlusPlus.xmod.gregtech.HANDLER_GT; @@ -77,6 +81,7 @@ public void load(final FMLInitializationEvent e) { GameRegistry.registerWorldGenerator(new WorldGen_GT_Base(), Short.MAX_VALUE); getEvergladesBiome().load(); Everglades_Dimension.load(); + addToVoidMinerDrops(); } public static synchronized void GenerateOreMaterials() { @@ -151,6 +156,19 @@ protected synchronized void setVars(FMLPreInitializationEvent event) { DarkWorldContentLoader.run(); } + public void addToVoidMinerDrops() { + for (WorldGen_GT_Ore_Layer t : WorldGen_Ores.validOreveins.values()) { + addVMDrop(t.mPrimaryMeta, 0, t.mWeight); + addVMDrop(t.mSecondaryMeta, 0, t.mWeight); + addVMDrop(t.mBetweenMeta, 0, t.mWeight); + addVMDrop(t.mSporadicMeta, 0, t.mWeight); + } + } + + public void addVMDrop(Block block, int meta, float weight) { + GT_TileEntity_VoidMiner_Base.addBlockToDimensionList(CORE.EVERGLADES_ID, block, meta, weight); + } + @EventHandler public void serverLoad(FMLServerStartingEvent event) { getEvergladesBiome().serverLoad(event); From 284b9335b368090a4815aeb3530a846ffb9258bc Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Sat, 4 May 2024 10:13:15 +0200 Subject: [PATCH 2/2] update --- dependencies.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index e7ae9ac644..394e54303b 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,6 +1,6 @@ dependencies { - api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.00:dev') - api("com.github.GTNewHorizons:bartworks:0.9.21:dev") + api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.02:dev') + api("com.github.GTNewHorizons:bartworks:0.10.0:dev") implementation('curse.maven:cofh-core-69162:2388751') // https://www.curseforge.com/minecraft/mc-mods/advancedsolarpanels