Multimeter now tries harder to search for wire networks
This commit is contained in:
parent
4990443e9a
commit
ebeaab6400
1 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,7 @@ import resonantinduction.electrical.Electrical;
|
|||
import universalelectricity.api.CompatibilityModule;
|
||||
import universalelectricity.api.energy.IConductor;
|
||||
import universalelectricity.api.energy.IEnergyNetwork;
|
||||
import universalelectricity.api.net.IConnector;
|
||||
import calclavia.lib.network.IPacketReceiver;
|
||||
import codechicken.lib.data.MCDataInput;
|
||||
import codechicken.lib.data.MCDataOutput;
|
||||
|
@ -224,7 +225,12 @@ public class PartMultimeter extends JCuboidPart implements IPacketReceiver, TFac
|
|||
{
|
||||
if (tileEntity instanceof IConductor)
|
||||
{
|
||||
IConductor conductor = (IConductor) ((IConductor) tileEntity).getInstance(side.getOpposite());
|
||||
IConnector<IEnergyNetwork> conductor = ((IConductor) tileEntity).getInstance(side.getOpposite());
|
||||
|
||||
if (conductor == null)
|
||||
{
|
||||
conductor = ((IConductor) tileEntity).getInstance(ForgeDirection.UNKNOWN);
|
||||
}
|
||||
|
||||
if (conductor != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue