Fix the draining issue
This commit is contained in:
parent
17e1cea25a
commit
d73eed2865
1 changed files with 5 additions and 0 deletions
|
@ -127,6 +127,11 @@ public final class CableUtils
|
||||||
*/
|
*/
|
||||||
public static boolean isValidAcceptorOnSide(TileEntity cableEntity, TileEntity tile, ForgeDirection side)
|
public static boolean isValidAcceptorOnSide(TileEntity cableEntity, TileEntity tile, ForgeDirection side)
|
||||||
{
|
{
|
||||||
|
if(isCable(tile))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(isEnergyAcceptor(tile) && isConnectable(cableEntity, tile, side))
|
if(isEnergyAcceptor(tile) && isConnectable(cableEntity, tile, side))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue