Fixed Relays when being in "Ignore Redstone" mode using up energy, fixes #246
This commit is contained in:
@@ -133,8 +133,8 @@ public class BlockCable extends BlockCoverable {
|
||||
|
||||
if (facing instanceof INetworkMaster || facing instanceof INetworkNode) {
|
||||
// Do not render a cable extension where our cable "head" is (e.g. importer, exporter, external storage heads).
|
||||
if (getPlacementType() != null) {
|
||||
return ((TileMultipartNode) world.getTileEntity(pos)).getFacingTile() != facing;
|
||||
if (getPlacementType() != null && ((TileMultipartNode) world.getTileEntity(pos)).getFacingTile() == facing) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return !TileMultipartNode.hasBlockingMicroblock(world, pos, direction) && !TileMultipartNode.hasBlockingMicroblock(world, pos.offset(direction), direction.getOpposite());
|
||||
|
||||
@@ -99,6 +99,10 @@ public class GuiGrid extends GuiBase {
|
||||
|
||||
GuiGrid gui = (GuiGrid) screen;
|
||||
|
||||
if (gui.searchField == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SORTED_ITEMS.clear();
|
||||
|
||||
if (gui.getGrid().isConnected()) {
|
||||
|
||||
@@ -13,7 +13,7 @@ public class TileRelay extends TileNode {
|
||||
|
||||
@Override
|
||||
public int getEnergyUsage() {
|
||||
return RefinedStorage.INSTANCE.relayUsage;
|
||||
return getRedstoneMode() == RedstoneMode.IGNORE ? 0 : RefinedStorage.INSTANCE.relayUsage;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user