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:
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"variants": {
|
||||||
|
"": {
|
||||||
|
"model": "tfmg:block/sulfuric_acid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -310,7 +310,7 @@ public class BlastFurnaceOutputBlockEntity extends SmartBlockEntity implements I
|
|||||||
tuyereBE = null;
|
tuyereBE = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (tuyereBE == null)
|
if (tuyereBE == null && tuyerePos != null)
|
||||||
tuyereBE = (BlastFurnaceHatchBlockEntity) level.getBlockEntity(tuyerePos);
|
tuyereBE = (BlastFurnaceHatchBlockEntity) level.getBlockEntity(tuyerePos);
|
||||||
|
|
||||||
if (tuyereBE.tank.getFluidAmount() < recipe.hotAirUsage || !tuyereBE.tank.getFluid().getFluid().isSame(TFMGFluids.HOT_AIR.getSource()))
|
if (tuyereBE.tank.getFluidAmount() < recipe.hotAirUsage || !tuyereBE.tank.getFluid().getFluid().isSame(TFMGFluids.HOT_AIR.getSource()))
|
||||||
|
|||||||
@@ -95,8 +95,11 @@ public class DistillationControllerBlockEntity extends SmartBlockEntity implemen
|
|||||||
if (be.isController()) {
|
if (be.isController()) {
|
||||||
if (be.getHeight() < outputs.toArray().length * 2 || (be.width < 2 && outputs.toArray().length > 3))
|
if (be.getHeight() < outputs.toArray().length * 2 || (be.width < 2 && outputs.toArray().length > 3))
|
||||||
return;
|
return;
|
||||||
} else if (be.getControllerBE().getHeight() < outputs.toArray().length * 2 || be.getControllerBE().width < 2)
|
} else {
|
||||||
return;
|
if (be.getControllerBE() != null)
|
||||||
|
if (be.getControllerBE().getHeight() < outputs.toArray().length * 2 || be.getControllerBE().width < 2)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (DistillationOutputBlockEntity be1 : outputs) {
|
for (DistillationOutputBlockEntity be1 : outputs) {
|
||||||
if (be1.tank.getSpace() == 0&&be1.mode.get() == DistillationOutputBlockEntity.DistillationOutputMode.KEEP_FLUID)
|
if (be1.tank.getSpace() == 0&&be1.mode.get() == DistillationOutputBlockEntity.DistillationOutputMode.KEEP_FLUID)
|
||||||
|
|||||||
Reference in New Issue
Block a user