Skip to content

Commit

Permalink
Reset gt machine colours when removing them (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple authored Feb 4, 2025
1 parent ac6a353 commit 87af7fa
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.minecraftforge.fluids.IFluidHandler;
import net.minecraftforge.oredict.OreDictionary;

import gregtech.api.interfaces.tileentity.IColoredTileEntity;
import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.interfaces.tileentity.IRedstoneEmitter;
Expand Down Expand Up @@ -329,6 +330,10 @@ protected void resetGTMachine(TileEntity te) {
emitter.setRedstoneOutputStrength(side, false);
}
}

if (te instanceof IColoredTileEntity colored) {
colored.setColorization((byte) -1);
}
}

@Optional(Names.ENDER_I_O)
Expand Down

0 comments on commit 87af7fa

Please sign in to comment.