Fix lighted buttons and toggle switches resetting on chunk reloads

This commit is contained in:
malte0811 2017-08-10 21:58:05 +02:00
parent 1a304e169e
commit ea2355de28
3 changed files with 3 additions and 3 deletions

View file

@ -158,7 +158,7 @@ public class LightedButton extends PanelComponent implements IConfigurableCompon
@Override
public void invalidate(TileEntityPanel te) {
setOut(false, te);
setOut(rsOutputChannel, 0);
}
private void setOut(boolean on, TileEntityPanel tile) {

View file

@ -241,7 +241,7 @@ public class Lock extends PanelComponent implements IConfigurableComponent {
@Override
public void invalidate(TileEntityPanel te) {
setOut(te);
setOut(rsOutputChannel, 0);
}
private void setOut(TileEntityPanel tile) {

View file

@ -161,7 +161,7 @@ public class ToggleSwitch extends PanelComponent implements IConfigurableCompone
@Override
public void invalidate(TileEntityPanel te) {
setOut(false, te);
setOut(rsOutputChannel, 0);
}
protected void setOut(boolean on, TileEntityPanel tile) {