diff options
author | Abdiel Kavash <19243993+AbdielKavash@users.noreply.github.com> | 2024-03-09 07:21:32 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 14:21:32 +0100 |
commit | b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b (patch) | |
tree | 56be0ea28c680a56ab03332d4c15e7bfa70d63d4 /src | |
parent | 3c3b5d730a3d198568665ef8a8f7c5e82328c660 (diff) | |
download | GT5-Unofficial-b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b.tar.gz GT5-Unofficial-b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b.tar.bz2 GT5-Unofficial-b9fca3bf7df8c0c2046bbefeeb25896cc39eea7b.zip |
Syncing TextWidget (#34)
* Replaces one instance where a dynamic text field is being communicated
between server and client with a purely client-side method. In some
cases this allows the client to do localization on these texts
correctly. (See https://github.com/GTNewHorizons/ModularUI/pull/69.)
This is a part of the series of PRs implementing new ModularUI features,
however this mod does not use any numeric text fields or similar, and
thus no other changes are needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java index e540bb4562..7bdba48995 100644 --- a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java +++ b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java @@ -540,7 +540,7 @@ public class MTE_AdvAssLine extends GT_MetaTileEntity_ExtendedPowerMultiBlockBas new TextWidget(Text.localised("ggfab.gui.advassline.shutdown")) .setEnabled(this::hasAbnormalStopReason)); screenElements.widget( - TextWidget.dynamicText(() -> Text.localised(lastStopReason)).setSynced(false) + new TextWidget().setTextSupplier(() -> Text.localised(lastStopReason)) .attachSyncer( new FakeSyncWidget.StringSyncer(() -> lastStopReason, r -> this.lastStopReason = r), screenElements) |