Possible fix for EnergyNet weirdness.
This commit is contained in:
parent
420e1619e6
commit
17e1cea25a
1 changed files with 8 additions and 1 deletions
|
@ -382,6 +382,13 @@ public class PartUniversalCable extends PartTransmitter<EnergyAcceptorWrapper, E
|
|||
@Override
|
||||
public EnergyAcceptorWrapper getCachedAcceptor(ForgeDirection side)
|
||||
{
|
||||
return EnergyAcceptorWrapper.get(cachedAcceptors[side.ordinal()]);
|
||||
ConnectionType type = connectionTypes[side.ordinal()];
|
||||
|
||||
if(type == ConnectionType.PULL || type == ConnectionType.NONE)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return connectionMapContainsSide(currentAcceptorConnections, side) ? EnergyAcceptorWrapper.get(cachedAcceptors[side.ordinal()]) : null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue