Skip to content

Commit

Permalink
Update ME IO Port tasks on grid changes (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Jan 15, 2024
1 parent 0291cef commit e8af0f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/appeng/tile/storage/TileIOPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ private void updateTask() {
}
}

@Override
public void gridChanged() {
super.gridChanged();
updateTask();
}

public void updateRedstoneState() {
final YesNo currentState = this.world.getRedstonePowerFromNeighbors(this.pos) != 0 ? YesNo.YES : YesNo.NO;
if (this.lastRedstoneState != currentState) {
Expand Down

0 comments on commit e8af0f2

Please sign in to comment.