diff --git a/src/main/java/simelectricity/essential/cable/TileCable.java b/src/main/java/simelectricity/essential/cable/TileCable.java index 7b5b9d8..e7c3901 100644 --- a/src/main/java/simelectricity/essential/cable/TileCable.java +++ b/src/main/java/simelectricity/essential/cable/TileCable.java @@ -99,9 +99,9 @@ public boolean installCoverPanel(Direction side, ISECoverPanel coverPanel, boole coverPanel.setHost(this, side); if (!coverPanel.isHollow()) { - //If the cover panel is not hollow, it may block some connection - if (this.connectedOnSide(side)) - SEAPI.energyNetAgent.updateTileConnection(this); + // If the cover panel is not hollow, it may block some connection + // The connection has to be check anyway, to keep the canConnection(side) record up to date + SEAPI.energyNetAgent.updateTileConnection(this); } if (coverPanel instanceof ISEElectricalCoverPanel) diff --git a/src/main/java/simelectricity/essential/machines/gui/GuiPowerMeter.java b/src/main/java/simelectricity/essential/machines/gui/GuiPowerMeter.java index 96cb6cb..8cdbc8c 100644 --- a/src/main/java/simelectricity/essential/machines/gui/GuiPowerMeter.java +++ b/src/main/java/simelectricity/essential/machines/gui/GuiPowerMeter.java @@ -73,7 +73,7 @@ public boolean mouseClicked(double x, double y, int button) { boolean ret = super.mouseClicked(x, y, button); if (x >= this.guiLeft + GuiPowerMeter.switchX && y >= this.guiTop + GuiPowerMeter.switchY && x < this.guiLeft + GuiPowerMeter.switchX + GuiPowerMeter.switchSize && y < this.guiTop + GuiPowerMeter.switchY + GuiPowerMeter.switchSize) - MessageContainerSync.sendButtonClickEventToSever(this.container, 12, Screen.hasControlDown()); + MessageContainerSync.sendButtonClickEventToSever(this.container, 0, Screen.hasControlDown()); return ret; }