mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Clocks are lit.
- ClockworkContraptions and BearingContraptions now both use the same lighter type.
This commit is contained in:
parent
c73e3166cb
commit
ea90196250
3 changed files with 9 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
@ -97,6 +97,6 @@ public class BearingContraption extends Contraption {
|
|||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public ContraptionLighter<?> makeLighter() {
|
||||
return new BearingLighter(this);
|
||||
return new AnchoredLighter(this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue