Clocks are lit.

- ClockworkContraptions and BearingContraptions now both use the same lighter type.
This commit is contained in:
JozsefA 2021-03-11 01:17:01 -08:00
parent c73e3166cb
commit ea90196250
3 changed files with 9 additions and 3 deletions

View File

@ -1,11 +1,12 @@
package com.simibubi.create.content.contraptions.components.structureMovement.bearing;
import com.simibubi.create.content.contraptions.components.structureMovement.Contraption;
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
import com.simibubi.create.foundation.render.backend.light.GridAlignedBB;
public class BearingLighter extends ContraptionLighter<BearingContraption> {
public class AnchoredLighter extends ContraptionLighter<Contraption> {
public BearingLighter(BearingContraption contraption) {
public AnchoredLighter(Contraption contraption) {
super(contraption);
}

View File

@ -97,6 +97,6 @@ public class BearingContraption extends Contraption {
@OnlyIn(Dist.CLIENT)
@Override
public ContraptionLighter<?> makeLighter() {
return new BearingLighter(this);
return new AnchoredLighter(this);
}
}

View File

@ -4,6 +4,7 @@ import java.util.HashSet;
import java.util.Queue;
import java.util.Set;
import com.simibubi.create.content.contraptions.components.structureMovement.ContraptionLighter;
import org.apache.commons.lang3.tuple.Pair;
import com.simibubi.create.content.contraptions.components.structureMovement.AssemblyException;
@ -129,4 +130,8 @@ public class ClockworkContraption extends Contraption {
HOUR, MINUTE
}
@Override
public ContraptionLighter<?> makeLighter() {
return new AnchoredLighter(this);
}
}