diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt index 97f7e4205..8a9267fe6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt @@ -6,6 +6,7 @@ import mezz.jei.api.recipe.RecipeType import net.minecraft.ChatFormatting import net.minecraft.client.gui.screens.Screen import net.minecraft.network.chat.Component +import ru.dbotthepony.mc.otm.client.CursorType import ru.dbotthepony.mc.otm.client.render.MGUIGraphics import ru.dbotthepony.mc.otm.client.render.UVWindingOrder import ru.dbotthepony.mc.otm.client.render.WidgetLocation @@ -94,6 +95,9 @@ open class ProgressGaugePanel( return recipeTypeSupplier != null && value == InputConstants.MOUSE_BUTTON_LEFT } + override val cursorType: CursorType + get() = if (recipeTypeSupplier != null) CursorType.HAND else CursorType.ARROW + override fun onClick(mouseButton: Int) { val recipeTypeSupplier = recipeTypeSupplier ?: return JEIPlugin.RUNTIME.recipesGui.showTypes(recipeTypeSupplier.get())