Bug Fixes

- Distillation Controller now checks if the tank controller is present before using it (Cannot invoke "SteelTankBlockEntity.getHeight()" because the return value of "SteelTankBlockEntity.getControllerBE()" is null)
- Blast Furnace Output now ensures the tuyerePos is not null before using it to get the tuyere block entity (Cannot invoke "BlockPos.m_123342_()" because "p_151571_" is null)
- Reran datagen for Sulfuric Acid's blockstate to fix empty file.
This commit is contained in:
PouffyDev
2025-07-09 20:34:34 +01:00
parent b72f1979e8
commit 6e818ecb70
3 changed files with 13 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "tfmg:block/sulfuric_acid"
}
}
}

View File

@@ -310,7 +310,7 @@ public class BlastFurnaceOutputBlockEntity extends SmartBlockEntity implements I
tuyereBE = null;
return;
}
if (tuyereBE == null)
if (tuyereBE == null && tuyerePos != null)
tuyereBE = (BlastFurnaceHatchBlockEntity) level.getBlockEntity(tuyerePos);
if (tuyereBE.tank.getFluidAmount() < recipe.hotAirUsage || !tuyereBE.tank.getFluid().getFluid().isSame(TFMGFluids.HOT_AIR.getSource()))

View File

@@ -95,8 +95,11 @@ public class DistillationControllerBlockEntity extends SmartBlockEntity implemen
if (be.isController()) {
if (be.getHeight() < outputs.toArray().length * 2 || (be.width < 2 && outputs.toArray().length > 3))
return;
} else if (be.getControllerBE().getHeight() < outputs.toArray().length * 2 || be.getControllerBE().width < 2)
return;
} else {
if (be.getControllerBE() != null)
if (be.getControllerBE().getHeight() < outputs.toArray().length * 2 || be.getControllerBE().width < 2)
return;
}
for (DistillationOutputBlockEntity be1 : outputs) {
if (be1.tank.getSpace() == 0&&be1.mode.get() == DistillationOutputBlockEntity.DistillationOutputMode.KEEP_FLUID)