diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index debceac1..4e73a4c5 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -7,7 +7,7 @@ - #328 Item conduits now accept input from TE tesseracts and can have items ejected into them from TE and MFR machines. 0.5.0 -Chnages +Changes - Added filtering to item conduits. - Added a second tier item conduit - Added new 'external connection' configuration UI diff --git a/common/crazypants/enderio/conduit/redstone/InsulatedRedstoneConduit.java b/common/crazypants/enderio/conduit/redstone/InsulatedRedstoneConduit.java index 13f3d9f6..8e33ac3a 100644 --- a/common/crazypants/enderio/conduit/redstone/InsulatedRedstoneConduit.java +++ b/common/crazypants/enderio/conduit/redstone/InsulatedRedstoneConduit.java @@ -100,24 +100,8 @@ public class InsulatedRedstoneConduit extends RedstoneConduit implements IInsula return true; } else if(connDir == ForgeDirection.UNKNOWN || connDir == faceHit) { - // Attempt to join networks - BlockCoord loc = getLocation().getLocation(faceHit); - IRedstoneConduit neighbour = ConduitUtil.getConduit(getBundle().getEntity().worldObj, loc.x, loc.y, loc.z, IRedstoneConduit.class); - if(neighbour != null) { - if(network != null) { - network.destroyNetwork(); - } - if(neighbour.getNetwork() != null) { - neighbour.getNetwork().destroyNetwork(); - } - onAddedToBundle(); - } else { - - forceConnectionMode(faceHit, ConnectionMode.IN_OUT); - - } - return true; + return ConduitUtil.joinConduits(this, faceHit); } else if(externalConnections.contains(connDir)) { forceConnectionMode(faceHit, ConnectionMode.DISABLED); diff --git a/common/crazypants/enderio/machine/monitor/GuiPowerMonitor.java b/common/crazypants/enderio/machine/monitor/GuiPowerMonitor.java index 857a6e3c..4fad424e 100644 --- a/common/crazypants/enderio/machine/monitor/GuiPowerMonitor.java +++ b/common/crazypants/enderio/machine/monitor/GuiPowerMonitor.java @@ -177,9 +177,14 @@ public class GuiPowerMonitor extends GuiScreenBase { getInt(endTF) != te.asPercentInt(te.stopLevel)) { te.engineControlEnabled = enabledB.isSelected(); - te.startLevel = te.asPercentFloat(getInt(startTF)); - te.stopLevel = te.asPercentFloat(getInt(endTF)); - + int i = getInt(startTF); + if(i >= 0) { + te.startLevel = te.asPercentFloat(i); + } + i = getInt(endTF); + if(i >= 0) { + te.stopLevel = te.asPercentFloat(i); + } Packet pkt = PowerMonitorPacketHandler.createPowerMonitotPacket(te); PacketDispatcher.sendPacketToServer(pkt); }