diff --git a/common/buildcraft/core/lib/engines/TileEngineBase.java b/common/buildcraft/core/lib/engines/TileEngineBase.java index f7f00afd..ecc4019e 100644 --- a/common/buildcraft/core/lib/engines/TileEngineBase.java +++ b/common/buildcraft/core/lib/engines/TileEngineBase.java @@ -383,7 +383,7 @@ public abstract class TileEngineBase extends TileBuildCraft implements IPipeConn for (int i = orientation.ordinal() + 1; i <= orientation.ordinal() + 6; ++i) { ForgeDirection o = ForgeDirection.VALID_DIRECTIONS[i % 6]; - TileEntity tile = getTile(o); + Object tile = getEnergyProvider(o); if ((!pipesOnly || tile instanceof IPipeTile) && isPoweredTile(tile, o)) { orientation = o; diff --git a/common/buildcraft/core/lib/utils/ThreadSafeUtils.java b/common/buildcraft/core/lib/utils/ThreadSafeUtils.java index b0298152..70d78139 100644 --- a/common/buildcraft/core/lib/utils/ThreadSafeUtils.java +++ b/common/buildcraft/core/lib/utils/ThreadSafeUtils.java @@ -20,7 +20,7 @@ public final class ThreadSafeUtils { } - private static Chunk getChunkHacky(World world, int x, int z) { + public static Chunk getChunk(World world, int x, int z) { Chunk chunk; chunk = lastChunk.get();