Skip to content

Commit 10a1088

Browse files
committed
Actually implement coloring for starlight hatches
1 parent b789a10 commit 10a1088

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Changes from upstream:
55
- Allow aspect labels to render on top of aspect hatch blocks
66
- Implement multiblock coloring for aspect, grid and starlight hatches
77

8-
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
8+
══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
99

1010
An addon for the Minecraft Mod : Modular Machinery, this adds compatibility with some well known magics mods such as Blood Magic, Astral Sorcery, Thaumcraft and more.
1111
Download this mod on Curseforge : https://www.curseforge.com/minecraft/mc-mods/modular-magic

src/main/java/fr/frinn/modularmagic/common/tile/TileStarlightInput.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
import javax.annotation.Nonnull;
2424
import javax.annotation.Nullable;
2525

26-
public class TileStarlightInput extends TileReceiverBase implements MachineComponentTile {
26+
public class TileStarlightInput extends TileReceiverBase implements MachineComponentTile, ColorableMachineTile {
2727

2828
private int starlightAmount = 0;
2929
private int color = Config.machineColor;
3030

31-
31+
@Override
3232
public int getMachineColor() {
3333
return this.color;
3434
}
3535

36-
36+
@Override
3737
public void setMachineColor(int newColor) {
3838
this.color = newColor;
3939
this.markForUpdate();

src/main/java/fr/frinn/modularmagic/common/tile/TileStarlightOutput.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@
3131
import javax.annotation.Nullable;
3232
import java.util.Map;
3333

34-
public class TileStarlightOutput extends TileSourceBase implements MachineComponentTile, IStarlightSource, ILinkableTile {
34+
public class TileStarlightOutput extends TileSourceBase implements MachineComponentTile, IStarlightSource, ILinkableTile, ColorableMachineTile {
3535

3636
private float starlightProduced = 0.0F;
3737
public int tick;
3838
private int color = Config.machineColor;
3939

4040
public IWeakConstellation constellation = ConstellationRegistry.getWeakConstellations().get(0);
4141

42-
42+
@Override
4343
public int getMachineColor() {
4444
return this.color;
4545
}
4646

47-
47+
@Override
4848
public void setMachineColor(int newColor) {
4949
this.color = newColor;
5050
this.markForUpdate();

0 commit comments

Comments
 (0)