Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rikka0w0 committed Apr 23, 2021
1 parent 58fdbc3 commit 8086de4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/simelectricity/essential/cable/TileCable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8086de4

Please sign in to comment.