Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	dependencies.gradle
  • Loading branch information
Dream-Master committed May 4, 2024
2 parents 56846a4 + 284b933 commit b3505cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.01-pre: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
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/gtPlusPlus/everglades/GTplusplus_Everglades.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b3505cb

Please sign in to comment.