Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
updated antimatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Aug 21, 2023
1 parent ddb3407 commit 62084c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/muramasa/gregtech/data/Structures.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static void init() {
boolean check = structureDefinition.check(tile, part, tile.getLevel(), tile.getExtendedFacing(), tile.getBlockPos().getX(), tile.getBlockPos().getY(), tile.getBlockPos().getZ(), newOffset.getX(), newOffset.getY(), newOffset.getZ(), !tile.isStructureValid());
if (!part.equals("bottom")){
if (check){
tile.FO_HATCHES.forEach(h -> tile.addComponent(HATCH_FLUID_O.getComponentId(), h));
tile.FO_HATCHES.forEach(h -> tile.addComponent(HATCH_FLUID_O.getId(), h));
tile.LAYERS.add(i);
} else {
tile.HATCH_LAYERS.remove(i);
Expand All @@ -116,7 +116,7 @@ public static void init() {
boolean check = structureDefinition.check(tile, part, tile.getLevel(), tile.getExtendedFacing(), tile.getBlockPos().getX(), tile.getBlockPos().getY(), tile.getBlockPos().getZ(), newOffset.getX(), newOffset.getY(), newOffset.getZ(), !tile.isStructureValid());
if (!part.equals("bottom")){
if (check){
tile.FO_HATCHES.forEach(h -> tile.addComponent(HATCH_FLUID_O.getComponentId(), h));
tile.FO_HATCHES.forEach(h -> tile.addComponent(HATCH_FLUID_O.getId(), h));
tile.LAYERS.add(i);
} else {
tile.HATCH_LAYERS.remove(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import muramasa.antimatter.capability.machine.DefaultHeatHandler;
import muramasa.antimatter.machine.MachineState;
import muramasa.antimatter.machine.event.MachineEvent;
import muramasa.antimatter.machine.types.HatchMachine;
import muramasa.antimatter.machine.types.Machine;
import muramasa.antimatter.material.Material;
import muramasa.antimatter.material.MaterialTags;
Expand All @@ -21,7 +22,7 @@ public class BlockEntityHatchHeat<T extends BlockEntityHatchHeat<T>> extends Til
public final Material material;
public Holder<IHeatHandler, DefaultHeatHandler> heatHandler = new Holder<>(IHeatHandler.class, dispatch);

public BlockEntityHatchHeat(Machine<?> type, BlockPos pos, BlockState state) {
public BlockEntityHatchHeat(HatchMachine type, BlockPos pos, BlockState state) {
super(type, pos, state);
HeatHatch hath = (HeatHatch)type;
this.material = hath.mat;
Expand Down

0 comments on commit 62084c0

Please sign in to comment.