@@ -68,7 +68,7 @@ public ManagedFieldHolder getFieldHolder() {
6868 @ Override
6969 public void onStructureInvalid () {
7070 changeColorState (Color .RED );
71- updateColoredActiveBlocks (false );
71+ updateActiveBlocks (false );
7272 fluidBlockOffsets .clear ();
7373 super .onStructureInvalid ();
7474 }
@@ -86,7 +86,7 @@ public void onStructureFormed() {
8686 }
8787
8888 saveOffsets ();
89- updateColoredActiveBlocks (true );
89+ updateActiveBlocks (true );
9090 }
9191
9292 // Not currently used now, but would reset the machine's color
@@ -142,7 +142,7 @@ public void afterWorking() {
142142 newKey = Color .getRandomColor ();
143143 }
144144 changeColorState (Color .getColorFromKey (newKey ));
145- updateColoredActiveBlocks (true );
145+ updateActiveBlocks (true );
146146 }
147147
148148 private void changeColorState (Color newColor ) {
@@ -151,9 +151,10 @@ private void changeColorState(Color newColor) {
151151 updateSignal ();
152152 }
153153
154- public void updateColoredActiveBlocks (boolean active ) {
155- super .updateActiveBlocks (active );
156- if (active && activeBlocks != null ) {
154+ @ Override
155+ public void updateActiveBlocks (boolean active ) {
156+ super .updateActiveBlocks (isFormed ());
157+ if (activeBlocks != null ) {
157158 for (Long pos : activeBlocks ) {
158159 var blockPos = BlockPos .of (pos );
159160 var blockState = Objects .requireNonNull (getLevel ()).getBlockState (blockPos );
@@ -167,12 +168,6 @@ public void updateColoredActiveBlocks(boolean active) {
167168 }
168169 }
169170
170- @ Override
171- public void updateActiveBlocks (boolean active ) {
172- // Does Nothing LMAO, behavior changed
173- // See updateColoredActiveBlocks
174- }
175-
176171 // Stolen from LargeChemicalBathMachine
177172 protected void saveOffsets () {
178173 Direction up = RelativeDirection .UP .getRelativeFacing (getFrontFacing (), getUpwardsFacing (), isFlipped ());
0 commit comments