From 740adb8f8e05c94b7ef15bd1687f7757777ab4b7 Mon Sep 17 00:00:00 2001 From: Worive <13164341+Worive@users.noreply.github.com> Date: Sat, 3 Oct 2026 21:37:22 +0200 Subject: [PATCH] fix: refresh provider connections when changing color (#145) --- .../common/tiles/abstraction/TileProviderBase.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/thaumicenergistics/common/tiles/abstraction/TileProviderBase.java b/src/main/java/thaumicenergistics/common/tiles/abstraction/TileProviderBase.java index 2379003d..c907c84c 100644 --- a/src/main/java/thaumicenergistics/common/tiles/abstraction/TileProviderBase.java +++ b/src/main/java/thaumicenergistics/common/tiles/abstraction/TileProviderBase.java @@ -211,15 +211,19 @@ public abstract class TileProviderBase extends AENetworkTile * Sets the color of the provider. This does not set the isColorForced flag to true. */ protected void setProviderColor(final AEColor gridColor) { + boolean colorChanged = this.getProxy().getColor() != gridColor; + // Set our color to match this.getProxy().setColor(gridColor); // Are we server side? if (EffectiveSide.isServerSide()) { - /* - * // Get the grid node IGridNode gridNode = this.getProxy().getNode(); // Do we have a grid node? if( - * gridNode != null ) { // Update the grid node this.getProxy().getNode().updateState(); } - */ + if (colorChanged) { + IGridNode gridNode = this.getProxy().getNode(); + if (gridNode != null) { + gridNode.updateState(); + } + } // Mark the tile as needing updates and to be saved this.markForUpdate();