From 2f13722442e0c4267d9b8880cf993bcad314ffdc Mon Sep 17 00:00:00 2001 From: HeavyLvy <{ID}+{username}@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:12:45 -0600 Subject: [PATCH] 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 --- .../metallurgy/blast_stove/BlastStoveBlockEntity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/drmangotea/tfmg/content/machinery/metallurgy/blast_stove/BlastStoveBlockEntity.java b/src/main/java/com/drmangotea/tfmg/content/machinery/metallurgy/blast_stove/BlastStoveBlockEntity.java index edd0e975..fe813e81 100644 --- a/src/main/java/com/drmangotea/tfmg/content/machinery/metallurgy/blast_stove/BlastStoveBlockEntity.java +++ b/src/main/java/com/drmangotea/tfmg/content/machinery/metallurgy/blast_stove/BlastStoveBlockEntity.java @@ -350,6 +350,10 @@ public class BlastStoveBlockEntity extends FluidTankBlockEntity implements IHave @SuppressWarnings("removal") public boolean addToGoggleTooltip(List tooltip, boolean isPlayerSneaking) { + if (getControllerBE() == null) { + return false; + } + LangBuilder mb = CreateLang.translate("generic.unit.millibuckets"); TFMGTexts.header("blast_stove").forGoggles(tooltip);