Skip to content

Commit

Permalink
Update baubles dep to the baubles extended mod (#53)
Browse files Browse the repository at this point in the history
* move the Loader.ismoloaded call out of the References class to avoid class loading issues if that class is referenced too early

* update baubles dep to the new baubles mod
  • Loading branch information
Alexdoru authored Oct 1, 2024
1 parent 3e06285 commit 69115e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
compileOnly("com.github.GTNewHorizons:inventory-tweaks:1.7.0:dev") {
transitive = false
}
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {
implementation('com.github.GTNewHorizons:Baubles-Expanded:2.0.3:dev') {
transitive = false
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.brandon3055.draconicevolution.common.lib;

import cpw.mods.fml.common.Loader;

public final class References {

public static final String MODID = "DraconicEvolution";
Expand All @@ -12,7 +10,6 @@ public final class References {
public static final String SERVERPROXYLOCATION = "com.brandon3055.draconicevolution.common.CommonProxy";
public static final String GUIFACTORY = "com.brandon3055.draconicevolution.client.gui.DEGUIFactory";
public static final String RESOURCESPREFIX = MODID.toLowerCase() + ":";
public static final boolean BAUBLES_MOD_IS_LOADED = Loader.isModLoaded("Baubles");

// ======================Render IDs========================//
public static int idTeleporterStand = -1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package com.brandon3055.draconicevolution.common.utills;

import static com.brandon3055.draconicevolution.common.lib.References.BAUBLES_MOD_IS_LOADED;

import java.util.Optional;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

import baubles.common.lib.PlayerHandler;
import cpw.mods.fml.common.Loader;

public final class InventoryUtils {

private static final boolean BAUBLES_MOD_IS_LOADED = Loader.isModLoaded("Baubles");

private InventoryUtils() {}

public static Optional<ItemStack> getItemInAnyPlayerInventory(EntityPlayer player,
Expand Down

0 comments on commit 69115e2

Please sign in to comment.