Skip to content

Commit c49ce14

Browse files
committed
ender link allowc2s
1 parent 709bc55 commit c49ce14

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/main/java/com/gregtechceu/gtceu/common/cover/ender/AbstractEnderLinkCover.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,16 @@ public void createCoverUIRows(Flow column, SidedPosGuiData data, PanelSyncManage
250250
(sm, sh) -> createChannelManagerPanel(data, sm, settings));
251251

252252
var colorSyncer = new IntSyncValue(this::getColor);
253-
EnumSyncValue<IO> ioSync = new EnumSyncValue<>(IO.class, this::getIo, this::setIo);
253+
EnumSyncValue<IO> ioSync = new EnumSyncValue<>(IO.class, this::getIo, this::setIo).allowC2S();
254254

255255
syncManager.syncValue("io", ioSync);
256256
syncManager.syncValue("color", colorSyncer);
257257

258258
var currentEntry = GenericSyncValue.builder(VirtualEntry.class)
259259
.getter(this::getEntry)
260-
.adapter(new VirtualEntryAdapter()).build();
260+
.adapter(new VirtualEntryAdapter())
261+
.allowC2S()
262+
.build();
261263
syncManager.syncValue("currentEntry", currentEntry);
262264

263265
DynamicLinkedSyncHandler<GenericSyncValue<VirtualEntry>> dynamicLinkedSyncHandler = new DynamicLinkedSyncHandler<>(
@@ -276,9 +278,9 @@ public void createCoverUIRows(Flow column, SidedPosGuiData data, PanelSyncManage
276278
.tooltip(1, t -> t.addLine(Text.lang(Permissions.PROTECTED.tooltip)))
277279
.tooltip(2, t -> t.addLine(Text.lang(Permissions.PRIVATE.tooltip)))
278280
.value(new EnumSyncValue<>(Permissions.class, this::getPermission,
279-
this::setPermission)))
281+
this::setPermission).allowC2S()))
280282
.child(new TextFieldWidget()
281-
.value(new StringSyncValue(this::getColorStr, this::setColorStr))
283+
.value(new StringSyncValue(this::getColorStr, this::setColorStr).allowC2S())
282284
.setMaxLength(8)
283285
.setValidator(str -> COLOR_INPUT_PATTERN.matcher(str).replaceAll(""))
284286
.addTooltipLine(Text.lang("cover.ender_link.tooltip.channel_name")))
@@ -293,7 +295,7 @@ public void createCoverUIRows(Flow column, SidedPosGuiData data, PanelSyncManage
293295
.setMaxLength(32)
294296
.widthRel(1f)
295297
.addTooltipLine(Text.lang("cover.ender_link.tooltip.channel_description"))
296-
.value(new StringSyncValue(this::getDescription, this::setDescription))));
298+
.value(new StringSyncValue(this::getDescription, this::setDescription).allowC2S())));
297299

298300
Flow bottomRow = coverUIRow();
299301
bottomRow.child(GTMuiWidgets.createPowerButton(this));

0 commit comments

Comments
 (0)