Skip to content

Commit 65b44d8

Browse files
authored
fix suggestion from #3745 (#3755)
1 parent f953099 commit 65b44d8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/com/gregtechceu/gtceu/api/registry/registrate/MachineBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ public MachineBuilder<DEFINITION> tieredHullModel(ResourceLocation model) {
256256
}
257257

258258
public MachineBuilder<DEFINITION> overlayTieredHullModel(String name) {
259+
modelProperty(GTMachineModelProperties.IS_FORMED, false);
259260
return overlayTieredHullModel(new ResourceLocation(registrate.getModid(), "block/machine/part/" + name));
260261
}
261262

@@ -270,6 +271,7 @@ public MachineBuilder<DEFINITION> colorOverlayTieredHullModel(String overlay) {
270271
public MachineBuilder<DEFINITION> colorOverlayTieredHullModel(String overlay,
271272
@Nullable String pipeOverlay,
272273
@Nullable String emissiveOverlay) {
274+
modelProperty(GTMachineModelProperties.IS_FORMED, false);
273275
ResourceLocation overlayTex = new ResourceLocation(registrate.getModid(), "block/overlay/machine/" + overlay);
274276
ResourceLocation pipeOverlayTex = pipeOverlay == null ? null :
275277
new ResourceLocation(registrate.getModid(), "block/overlay/machine/" + pipeOverlay);
@@ -291,6 +293,7 @@ public MachineBuilder<DEFINITION> colorOverlayTieredHullModel(ResourceLocation o
291293
}
292294

293295
public MachineBuilder<DEFINITION> overlaySteamHullModel(String name) {
296+
modelProperty(GTMachineModelProperties.IS_FORMED, false);
294297
return overlaySteamHullModel(new ResourceLocation(registrate.getModid(), "block/machine/part/" + name));
295298
}
296299

@@ -306,6 +309,7 @@ public MachineBuilder<DEFINITION> colorOverlaySteamHullModel(String overlay) {
306309
public MachineBuilder<DEFINITION> colorOverlaySteamHullModel(String overlay,
307310
@Nullable ResourceLocation pipeOverlay,
308311
@Nullable String emissiveOverlay) {
312+
modelProperty(GTMachineModelProperties.IS_FORMED, false);
309313
ResourceLocation overlayTex = new ResourceLocation(registrate.getModid(), "block/overlay/machine/" + overlay);
310314
ResourceLocation pipeOverlayTex = pipeOverlay == null ? null :
311315
new ResourceLocation(registrate.getModid(), "block/overlay/machine/" + pipeOverlay);

src/main/java/com/gregtechceu/gtceu/common/data/machines/GTResearchMachines.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ public class GTResearchMachines {
332332
.tier(HV)
333333
.rotationState(RotationState.ALL)
334334
.abilities(PartAbility.DATA_ACCESS)
335-
.modelProperty(IS_FORMED, false)
336335
.tooltips(Component.translatable("gtceu.machine.data_access_hatch.tooltip.0"),
337336
Component.translatable("gtceu.machine.data_access_hatch.tooltip.1", 4),
338337
Component.translatable("gtceu.part_sharing.disabled"))
@@ -345,7 +344,6 @@ public class GTResearchMachines {
345344
.tier(EV)
346345
.rotationState(RotationState.ALL)
347346
.abilities(PartAbility.DATA_ACCESS)
348-
.modelProperty(IS_FORMED, false)
349347
.tooltips(Component.translatable("gtceu.machine.data_access_hatch.tooltip.0"),
350348
Component.translatable("gtceu.machine.data_access_hatch.tooltip.1", 9),
351349
Component.translatable("gtceu.part_sharing.disabled"))
@@ -358,7 +356,6 @@ public class GTResearchMachines {
358356
.tier(LuV)
359357
.rotationState(RotationState.ALL)
360358
.abilities(PartAbility.DATA_ACCESS)
361-
.modelProperty(IS_FORMED, false)
362359
.tooltips(Component.translatable("gtceu.machine.data_access_hatch.tooltip.0"),
363360
Component.translatable("gtceu.machine.data_access_hatch.tooltip.1", 16),
364361
Component.translatable("gtceu.part_sharing.disabled"))
@@ -449,7 +446,6 @@ private static MachineBuilder<MachineDefinition> registerDataHatch(String name,
449446
.tier(tier)
450447
.rotationState(RotationState.ALL)
451448
.abilities(abilities)
452-
.modelProperty(IS_FORMED, false)
453449
.overlayTieredHullModel(model);
454450
}
455451

@@ -460,7 +456,7 @@ private static MachineBuilder<MachineDefinition> registerHPCAPart(String name, S
460456
.langValue(displayName)
461457
.rotationState(RotationState.ALL)
462458
.abilities(PartAbility.HPCA_COMPONENT)
463-
.modelProperty(IS_FORMED, false)
459+
.modelProperty(GTMachineModelProperties.IS_FORMED, false)
464460
.modelProperty(GTMachineModelProperties.IS_HPCA_PART_DAMAGED, false)
465461
.modelProperty(GTMachineModelProperties.IS_ACTIVE, false)
466462
.model(createHPCAPartModel(isAdvanced,

0 commit comments

Comments
 (0)