From df04ab8727d3c9fa48f83ca28a2fed21875c5b2d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Tue, 15 Jun 2021 13:26:43 +1000 Subject: [PATCH] Fixed crashing with Terra. Closes #1864 --- .../java/biomesoplenty/client/handler/GuiEventHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java b/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java index 0121d3425..a2601a03e 100644 --- a/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java +++ b/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java @@ -37,6 +37,10 @@ public class GuiEventHandler { for (BiomeGeneratorTypeScreens screen : BiomeGeneratorTypeScreens.PRESETS) { + // Skip screens that don't use a TranslationTextComponent because definitely they're not ours + if (!(screen.description instanceof TranslationTextComponent)) + continue; + TranslationTextComponent desc = (TranslationTextComponent)screen.description; if (desc.getKey().equals("generator.minecraft.biomesoplenty"))