mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
Fix support for rv2 (again) and add config for ME conduits.
This commit is contained in:
1 parent
6fcde4b219
commit
d0f5e41703
4 files changed
+26
-7
No files matched your search
@@ -4,8 +4,6 @@ import java.util.Arrays;
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
|
||||
import com.sun.corba.se.impl.orbutil.closure.Constant;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@@ -9,7 +9,6 @@ import appeng.api.networking.GridNotification;
|
||||
import appeng.api.networking.IGrid;
|
||||
import appeng.api.networking.IGridBlock;
|
||||
import appeng.api.networking.IGridHost;
|
||||
import appeng.api.networking.IGridNode;
|
||||
import appeng.api.util.AEColor;
|
||||
import appeng.api.util.DimensionalCoord;
|
||||
|
||||
@@ -50,6 +49,11 @@ public class MEConduitGrid implements IGridBlock {
|
||||
public boolean isWorldAccessable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
//@Override // dummy method for rv2
|
||||
public boolean isWorldAccessible() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DimensionalCoord getLocation() {
|
||||
|
||||
@@ -1,11 +1,25 @@
|
||||
package crazypants.enderio.conduit.me;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import crazypants.enderio.config.Config;
|
||||
|
||||
public class MEUtil {
|
||||
|
||||
public static boolean isMEEnabled() {
|
||||
return Loader.isModLoaded("appliedenergistics2");
|
||||
}
|
||||
private static boolean useCheckPerformed = false;
|
||||
private static boolean isGasConduitEnabled = false;
|
||||
|
||||
public static boolean isMEEnabled() {
|
||||
if(!useCheckPerformed) {
|
||||
String configOption = Config.isGasConduitEnabled;
|
||||
if(configOption.equalsIgnoreCase("auto")) {
|
||||
isGasConduitEnabled = Loader.isModLoaded("appliedenergistics2");
|
||||
} else if(configOption.equalsIgnoreCase("true")) {
|
||||
isGasConduitEnabled = true;
|
||||
} else {
|
||||
isGasConduitEnabled = false;
|
||||
}
|
||||
useCheckPerformed = true;
|
||||
}
|
||||
return isGasConduitEnabled;
|
||||
}
|
||||
}
|
||||
@@ -292,6 +292,7 @@ public final class Config {
|
||||
public static boolean allowTileEntitiesAsPaintSource = true;
|
||||
|
||||
public static String isGasConduitEnabled = "auto";
|
||||
public static String isMeConduitEnabled = "auto";
|
||||
|
||||
public static String[] soulVesselBlackList = new String[0];
|
||||
public static boolean soulVesselCapturesBosses = false;
|
||||
@@ -875,7 +876,9 @@ public final class Config {
|
||||
|
||||
isGasConduitEnabled = config.getString("isGasConduitEnabled", sectionItems.name, isGasConduitEnabled,
|
||||
"Can be set to 'auto', 'true' or 'false'. When set to auto the gas conduit will only be enabled when Mekanism is installed.");
|
||||
|
||||
isMeConduitEnabled = config.getString("isMeConduitEnabled", sectionItems.name, isMeConduitEnabled,
|
||||
"Can be set to 'auto', 'true' or 'false'. When set to auto the ME conduit will only be enabled when AE2 is installed.");
|
||||
|
||||
soulVesselBlackList = config.getStringList("soulVesselBlackList", sectionSoulBinder.name, soulVesselBlackList,
|
||||
"Entities listed here will can not be captured in a Soul Vial");
|
||||
|
||||
|
||||
Reference in new issue
Block a user