Fixed odd compile time error with classes not inheriting INode from NodeFluidHandler

This commit is contained in:
Robert S 2014-09-26 13:28:34 -04:00
parent b297a059f4
commit b8e788f8f6
3 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@ package resonantinduction.core.prefab.node;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.IFluidHandler;
import universalelectricity.api.core.grid.INode;
import universalelectricity.api.core.grid.INodeProvider;
import universalelectricity.api.core.grid.IUpdate;

View file

@ -13,6 +13,7 @@ import resonant.lib.network.handle.IPacketIDReceiver;
import resonant.lib.prefab.fluid.LimitedTank;
import resonant.lib.prefab.fluid.NodeFluidHandler;
import resonant.lib.utility.WorldUtility;
import universalelectricity.api.core.grid.INode;
import universalelectricity.api.core.grid.INodeProvider;
import universalelectricity.api.core.grid.ISave;
import universalelectricity.core.grid.node.NodeConnector;
@ -22,7 +23,7 @@ import universalelectricity.core.grid.node.NodeConnector;
*
* @author Darkguardsman
*/
public class NodeTank extends NodeFluidHandler implements ISave, IPacketIDReceiver
public class NodeTank extends NodeFluidHandler implements ISave, IPacketIDReceiver, INode
{
static final int PACKET_DESCRIPTION = 100, PACKET_TANK = 101;
int renderSides = 0;

View file

@ -82,7 +82,7 @@ public class TilePump extends TileMechanical implements IRotatable, IFluidHandle
if (tileIn instanceof IFluidHandler)
{
FluidStack drain = ((IFluidHandler) tileIn).drain(getDirection(), pressureNode.maxOutput(), false);
FluidStack drain = ((IFluidHandler) tileIn).drain(getDirection(), pressureNode.getCapacity(), false);
if (drain != null)
{