Fixed crashing with Terra. Closes #1864

This commit is contained in:
Adubbz 2021-06-15 13:26:43 +10:00
parent c9cfab8065
commit df04ab8727

View file

@ -37,6 +37,10 @@ public class GuiEventHandler
{ {
for (BiomeGeneratorTypeScreens screen : BiomeGeneratorTypeScreens.PRESETS) 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; TranslationTextComponent desc = (TranslationTextComponent)screen.description;
if (desc.getKey().equals("generator.minecraft.biomesoplenty")) if (desc.getKey().equals("generator.minecraft.biomesoplenty"))