Skip to content

Commit 67ac29e

Browse files
committed
Allow for EnergyHatch with custom namespace
1 parent fcbcb15 commit 67ac29e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/aztech/modern_industrialization/machines/blockentities/hatches/EnergyHatch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343

4444
public class EnergyHatch extends HatchBlockEntity implements EnergyComponentHolder, CableTierHolder {
4545

46-
public EnergyHatch(BEP bep, String name, boolean input, CableTier tier) {
47-
super(bep, new MachineGuiParameters.Builder(name, false).build(), new OrientationComponent.Params(!input, false, false));
46+
public EnergyHatch(BEP bep, MachineGuiParameters guiParams, boolean input, CableTier tier) {
47+
super(bep, guiParams, new OrientationComponent.Params(!input, false, false));
4848

4949
this.input = input;
5050
this.tier = tier;

src/main/java/aztech/modern_industrialization/machines/init/MultiblockHatches.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public static void registerEnergyHatches(CableTier tier) {
125125
boolean input = iter == 0;
126126
String machine = tier.name + "_energy_" + (input ? "input" : "output") + "_hatch";
127127
String englishName = tier.shortEnglishName + " Energy" + (input ? " Input" : " Output") + " Hatch";
128-
MachineRegistrationHelper.registerMachine(englishName, machine, bet -> new EnergyHatch(bet, machine, input, tier),
128+
MachineRegistrationHelper.registerMachine(englishName, machine,
129+
bet -> new EnergyHatch(bet, new MachineGuiParameters.Builder(machine, false).build(), input, tier),
129130
EnergyHatch::registerEnergyApi);
130131
MachineRegistrationHelper.addMachineModel(machine, "hatch_energy", tier.casing, true, false, true, false);
131132
}

0 commit comments

Comments
 (0)