Skip to content

Commit

Permalink
Fix trade signs not updating signs (Fixes #5814)
Browse files Browse the repository at this point in the history
i guess these things are transactional now whatever
  • Loading branch information
JRoy authored Jul 21, 2024
1 parent 33e086f commit 80c3150
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,11 @@ public void updateSign() {

static class BlockSign implements ISign {
private final transient Block block;
private transient Sign sign;

BlockSign(final Block block) {
this.block = block;
this.sign = getSign();
}

@Override
Expand All @@ -569,7 +571,7 @@ public final String getLine(final int index) {

@Override
public final void setLine(final int index, final String text) {
getSign().setLine(index, text);
sign.setLine(index, text);
updateSign();
}

Expand All @@ -586,7 +588,8 @@ private Sign getSign() {

@Override
public final void updateSign() {
getSign().update();
sign.update();
sign = getSign();
}
}
}

0 comments on commit 80c3150

Please sign in to comment.