Skip to content

Commit

Permalink
Update the armor stand when toggling the locked state
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Feb 27, 2024
1 parent ed272c0 commit f0897c8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ public void init() {

this.addRenderableWidget(this.lockButton = new LockIconButton(offsetX - (22 * buttonsLeft) - buttonOffset, offsetY, (button) -> {
this.lockButton.setLocked(!this.lockButton.isLocked());
this.textFieldUpdated();
}));
this.lockButton.setLocked(this.armorStandData.getBooleanValue(6));
this.lockButton.setTooltip(Tooltip.create(Component.translatable("armorposer.gui.tooltip.lock")));
Expand Down

0 comments on commit f0897c8

Please sign in to comment.