fix for looping crash #33
This commit is contained in:
DrParadox7 authored and GitHub committed 2022-11-22 19:31:05 +01:00
commit 0d2d6effd9
3 files changed
+9

No files matched your search

@@ -10,6 +10,7 @@ import java.util.Set;
import mekanism.api.Coord4D;
import mekanism.api.EnumColor;
import mekanism.api.util.StackUtils;
import mekanism.common.Mekanism;
import mekanism.common.base.ISideConfiguration;
import mekanism.common.content.transporter.TransporterStack.Path;
import mekanism.common.tile.TileEntityBin;
@@ -22,6 +23,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import powercrystals.minefactoryreloaded.api.IDeepStorageUnit;
import cpw.mods.fml.common.Loader;
import com.dynious.refinedrelocation.tileentity.TileBuffer;
public class TransporterManager
{
@@ -96,6 +98,11 @@ public class TransporterManager
{
return null;
}
if(Mekanism.hooks.RRLoaded) {
if (inv instanceof TileBuffer) {
return null;
}
}
for(int get = 0; get <= slots.length - 1; get++)
{
@@ -41,6 +41,7 @@ public final class MekanismHooks
public boolean TELoaded = false;
public boolean CCLoaded = false;
public boolean AE2Loaded = false;
public boolean RRLoaded = false;
public void hook()
{
@@ -50,6 +51,7 @@ public final class MekanismHooks
if(Loader.isModLoaded("ThermalExpansion")) TELoaded = true;
if(Loader.isModLoaded("ComputerCraft")) CCLoaded = true;
if(Loader.isModLoaded("appliedenergistics2")) AE2Loaded = true;
if(Loader.isModLoaded("RefinedRelocation")) RRLoaded = true;
if(IC2Loaded)
{