kill TileDummyGenericPipe, cleanup

This commit is contained in:
Adrian Siekierka 2014-11-09 12:49:38 +01:00
parent 0366f3fae0
commit 90a515c837
6 changed files with 9 additions and 33 deletions

View file

@ -378,7 +378,10 @@ public class TileEngineIron extends TileEngineWithInventory implements IFluidHan
@Override
public FluidTankInfo[] getTankInfo(ForgeDirection direction) {
return tankManager.getTankInfo(direction);
if (direction == orientation) {
return null;
}
return tankManager.getTankInfo(direction);
}
@Override

View file

@ -29,8 +29,10 @@ public class PipeTransportStructure extends PipeTransport {
if (BlockGenericPipe.isValid(pipe2) && !(pipe2.transport instanceof PipeTransportStructure)) {
return false;
}
return true;
}
return tile instanceof TileGenericPipe;
return false;
}
}

View file

@ -1,13 +0,0 @@
/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.transport;
public class TileDummyGenericPipe extends TileGenericPipe {
}

View file

@ -1,13 +0,0 @@
/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.transport;
public class TileDummyGenericPipe2 extends TileGenericPipe {
}

View file

@ -20,9 +20,8 @@ public class TransportProxy {
public static int pipeModel = -1;
public void registerTileEntities() {
GameRegistry.registerTileEntity(TileDummyGenericPipe.class, "net.minecraft.src.buildcraft.GenericPipe");
GameRegistry.registerTileEntity(TileDummyGenericPipe2.class, "net.minecraft.src.buildcraft.transport.TileGenericPipe");
GameRegistry.registerTileEntity(TileGenericPipe.class, "net.minecraft.src.buildcraft.transport.GenericPipe");
// The first name here is the current TE name; the remaining names are old names used for backwards compatibility
GameRegistry.registerTileEntityWithAlternatives(TileGenericPipe.class, "net.minecraft.src.buildcraft.transport.GenericPipe", "net.minecraft.src.buildcraft.GenericPipe", "net.minecraft.src.buildcraft.transport.TileGenericPipe");
GameRegistry.registerTileEntity(TileFilteredBuffer.class, "net.minecraft.src.buildcraft.transport.TileFilteredBuffer");
}

View file

@ -35,8 +35,6 @@ public class TransportProxyClient extends TransportProxy {
public void registerTileEntities() {
super.registerTileEntities();
PipeRendererTESR rp = new PipeRendererTESR();
ClientRegistry.bindTileEntitySpecialRenderer(TileDummyGenericPipe.class, rp);
ClientRegistry.bindTileEntitySpecialRenderer(TileDummyGenericPipe2.class, rp);
ClientRegistry.bindTileEntitySpecialRenderer(TileGenericPipe.class, rp);
}