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

Fix void protection of dangote #827

Merged
merged 1 commit into from
Jan 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import gregtech.api.recipe.RecipeMaps;
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
import gregtech.api.util.GT_Utility;
import gregtech.common.tileentities.machines.GT_MetaTileEntity_Hatch_Output_ME;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.minecraft.PlayerUtils;
Expand Down Expand Up @@ -426,6 +427,14 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
}
}

@Override
public boolean canDumpFluidToME() {
// All fluids can be dumped to ME only if each layer contains a ME Output Hatch.
return this.mOutputHatchesByLayer.stream().allMatch(
tLayerOutputHatches -> tLayerOutputHatches.stream()
.anyMatch(tHatch -> tHatch instanceof GT_MetaTileEntity_Hatch_Output_ME));
}

@Override
public void setItemNBT(NBTTagCompound aNBT) {
aNBT.setBoolean("mUpgraded", mUpgraded);
Expand Down