added check if genControllerBE() is null when adding blast stove info to create goggles tooltip. If it is null return false. Fixes GitHub issue #237

This commit is contained in:
HeavyLvy
2025-08-24 19:12:45 -06:00
parent 813ed0afa5
commit 2f13722442

View File

@@ -350,6 +350,10 @@ public class BlastStoveBlockEntity extends FluidTankBlockEntity implements IHave
@SuppressWarnings("removal")
public boolean addToGoggleTooltip(List<Component> tooltip, boolean isPlayerSneaking) {
if (getControllerBE() == null) {
return false;
}
LangBuilder mb = CreateLang.translate("generic.unit.millibuckets");
TFMGTexts.header("blast_stove").forGoggles(tooltip);