fix compilation, fix getEnergyProvider hook on engines

This commit is contained in:
Adrian 2015-06-14 10:12:49 +02:00
parent 9fec760eb4
commit d5422d5cca
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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();