From f0897c8a1f187c29e092b43f6893371231c60d7b Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Wed, 28 Feb 2024 00:12:09 +0100 Subject: [PATCH] Update the armor stand when toggling the locked state --- .../java/com/mrbysco/armorposer/client/gui/ArmorStandScreen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/com/mrbysco/armorposer/client/gui/ArmorStandScreen.java b/common/src/main/java/com/mrbysco/armorposer/client/gui/ArmorStandScreen.java index d9a50fe..ec1d9ee 100644 --- a/common/src/main/java/com/mrbysco/armorposer/client/gui/ArmorStandScreen.java +++ b/common/src/main/java/com/mrbysco/armorposer/client/gui/ArmorStandScreen.java @@ -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")));