Fixed crashing with Terra. Closes #1864

This commit is contained in:
Adubbz 2021-06-15 13:26:43 +10:00
parent c9cfab8065
commit df04ab8727
1 changed files with 4 additions and 0 deletions

View File

@ -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"))