diff --git a/base/src/main/kotlin/dev/nathanpb/dml/screen/handler/DeepLearnerScreenHandler.kt b/base/src/main/kotlin/dev/nathanpb/dml/screen/handler/DeepLearnerScreenHandler.kt index 5411d883..abd1f49e 100644 --- a/base/src/main/kotlin/dev/nathanpb/dml/screen/handler/DeepLearnerScreenHandler.kt +++ b/base/src/main/kotlin/dev/nathanpb/dml/screen/handler/DeepLearnerScreenHandler.kt @@ -32,6 +32,8 @@ import dev.nathanpb.dml.utils.setStacks import io.github.cottonmc.cotton.gui.SyncedGuiDescription import io.github.cottonmc.cotton.gui.widget.* import io.github.cottonmc.cotton.gui.widget.data.Insets +import net.fabricmc.api.EnvType +import net.fabricmc.loader.api.FabricLoader import net.minecraft.entity.player.PlayerInventory import net.minecraft.inventory.SimpleInventory import net.minecraft.item.ItemStack @@ -111,7 +113,9 @@ class DeepLearnerScreenHandler ( } private val prevButton: WButton = WButton(LiteralText("<")).apply { - addTooltip(TooltipBuilder().add(TranslatableText("gui.$MOD_ID.previous"))) + if (FabricLoader.getInstance().environmentType == EnvType.CLIENT) { + addTooltip(TooltipBuilder().add(TranslatableText("gui.$MOD_ID.previous"))) + } setOnClick { currentSlot = nextReverseDataModelIndex() @@ -119,7 +123,9 @@ class DeepLearnerScreenHandler ( } private val nextButton: WButton = WButton(LiteralText(">")).apply { - addTooltip(TooltipBuilder().add(TranslatableText("gui.${MOD_ID}.next"))) + if (FabricLoader.getInstance().environmentType == EnvType.CLIENT) { + addTooltip(TooltipBuilder().add(TranslatableText("gui.${MOD_ID}.next"))) + } setOnClick { currentSlot = nextForwardDataModelIndex() diff --git a/gradle.properties b/gradle.properties index 9199c2e8..e014ee76 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ fabric_version=0.34.9+1.17 loom_version=0.8-SNAPSHOT # Mod Properties -mod_version = 0.4.0-beta2 +mod_version = 0.4.1-beta maven_group = dev.nathanpb archives_base_name = deepmoblearning-refabricated