Skip to content

Commit

Permalink
fix server crash with creative tabs goh
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed May 8, 2024
1 parent a6b5138 commit 9f793ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.cleanroommc.groovyscript.api.IGameObjectParser;
import com.cleanroommc.groovyscript.api.IIngredient;
import com.cleanroommc.groovyscript.api.Result;
import com.cleanroommc.groovyscript.core.mixin.CreativeTabsAccessor;
import com.cleanroommc.groovyscript.core.mixin.OreDictionaryAccessor;
import com.cleanroommc.groovyscript.helper.ingredient.OreDictIngredient;
import com.cleanroommc.groovyscript.helper.ingredient.OreDictWildcardIngredient;
Expand Down Expand Up @@ -107,7 +108,7 @@ public static void init() {
.register();
GameObjectHandler.builder("creativeTab", CreativeTabs.class)
.parser(GameObjectHandlers::parseCreativeTab)
.completerOfNamed(() -> Arrays.asList(CreativeTabs.CREATIVE_TAB_ARRAY), CreativeTabs::getTabLabel)
.completerOfNamed(() -> Arrays.asList(CreativeTabs.CREATIVE_TAB_ARRAY), v -> ((CreativeTabsAccessor) v).getTabLabel2())
.register();
GameObjectHandler.builder("textformat", TextFormatting.class)
.parser(GameObjectHandlers::parseTextFormatting)
Expand Down

0 comments on commit 9f793ff

Please sign in to comment.