mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-26 23:13:00 +00:00
fixing the ethereal shard dupe
This commit is contained in:
1 parent
f777cf976d
commit
0d97d836a3
5 files changed
+36
No files matched your search
@@ -80,6 +80,7 @@ public class Config {
|
||||
public static boolean extraBeesActive;
|
||||
public static boolean redstoneArsenalActive;
|
||||
public static boolean thaumcraftActive;
|
||||
public static boolean thaumicHorizonsActive;
|
||||
public static boolean thermalFoundationActive;
|
||||
public static boolean botaniaActive;
|
||||
public static boolean ae2Active;
|
||||
@@ -249,6 +250,9 @@ public class Config {
|
||||
p = configuration.get(CATEGORY_MODULES, "Thaumcraft", true);
|
||||
thaumcraftActive = p.getBoolean();
|
||||
|
||||
p = configuration.get(CATEGORY_MODULES, "ThaumicHorizons", true);
|
||||
thaumicHorizonsActive = p.getBoolean();
|
||||
|
||||
p = configuration.get(CATEGORY_MODULES, "ThermalExpansion", true);
|
||||
thermalFoundationActive = p.getBoolean();
|
||||
|
||||
|
||||
@@ -41,5 +41,6 @@ public class ModHelperManager {
|
||||
helpers.add(new AppliedEnergisticsHelper());
|
||||
helpers.add(new BaublesHelper());
|
||||
helpers.add(new BloodHelper());
|
||||
helpers.add(new ThaumicHorizonsHelper());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import magicbees.main.Config;
|
||||
|
||||
public class ThaumicHorizonsHelper implements IModHelper {
|
||||
|
||||
private static boolean isTHorizonsActive = false;
|
||||
public static final String Name = "ThaumicHorizons";
|
||||
|
||||
public static boolean isActive() {
|
||||
return isTHorizonsActive;
|
||||
}
|
||||
|
||||
public void preInit() {
|
||||
if (Loader.isModLoaded(Name) && Config.thaumicHorizonsActive) {
|
||||
isTHorizonsActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void init() {}
|
||||
|
||||
public void postInit() {}
|
||||
}
|
||||
@@ -13,7 +13,10 @@ import net.minecraft.world.ChunkPosition;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
|
||||
import com.kentington.thaumichorizons.common.tiles.TileSyntheticNode;
|
||||
|
||||
import magicbees.main.Config;
|
||||
import magicbees.main.utils.compat.ThaumicHorizonsHelper;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.nodes.INode;
|
||||
@@ -41,6 +44,9 @@ public class NodeHelper {
|
||||
((Map<ChunkPosition, TileEntity>) chunk.chunkTileEntityMap).values());
|
||||
Collections.shuffle(tileEntities);
|
||||
for (TileEntity entity : tileEntities) {
|
||||
if (ThaumicHorizonsHelper.isActive() && entity instanceof TileSyntheticNode) {
|
||||
return null;
|
||||
}
|
||||
if (entity instanceof INode) {
|
||||
Vec3 tePos = Vec3.createVectorHelper(entity.xCoord, entity.yCoord, entity.zCoord);
|
||||
Vec3 result = apiaryPos.subtract(tePos);
|
||||
|
||||
Reference in new issue
Block a user