aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/witchery
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/witchery')
-rw-r--r--src/main/java/gtPlusPlus/xmod/witchery/WitchUtils.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/witchery/WitchUtils.java b/src/main/java/gtPlusPlus/xmod/witchery/WitchUtils.java
index 78a1bcba91..b5ee266143 100644
--- a/src/main/java/gtPlusPlus/xmod/witchery/WitchUtils.java
+++ b/src/main/java/gtPlusPlus/xmod/witchery/WitchUtils.java
@@ -1,5 +1,7 @@
package gtPlusPlus.xmod.witchery;
+import static gregtech.api.enums.Mods.Witchery;
+
import java.lang.reflect.Field;
import java.util.ArrayList;
@@ -11,7 +13,6 @@ import net.minecraftforge.oredict.OreDictionary;
import com.mojang.authlib.GameProfile;
-import gtPlusPlus.core.lib.LoadedMods;
import gtPlusPlus.core.material.ALLOY;
import gtPlusPlus.core.util.reflect.ReflectionUtils;
@@ -23,7 +24,7 @@ public class WitchUtils {
static {
Field a1 = null, a2 = null;
GameProfile b1 = null, b2 = null;
- if (LoadedMods.Witchery) {
+ if (Witchery.isModLoaded()) {
try {
a1 = getField("com.emoniph.witchery.entity.ai.EntityAIDigBlocks", "NORMAL_MINER_PROFILE");
a2 = getField("com.emoniph.witchery.entity.ai.EntityAIDigBlocks", "KOBOLDITE_MINER_PROFILE");
@@ -38,7 +39,7 @@ public class WitchUtils {
// com.emoniph.witchery.entity.ai.EntityAIDigBlocks.onHarvestDrops(EntityPlayer, HarvestDropsEvent)
public static void onHarvestDrops(final EntityPlayer harvester, final BlockEvent.HarvestDropsEvent event) {
- if (LoadedMods.Witchery) {
+ if (Witchery.isModLoaded()) {
if (harvester != null && !harvester.worldObj.isRemote
&& !event.isCanceled()