diff --git a/gradle.properties b/gradle.properties index 5df3f21..d25214f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,6 +16,6 @@ fabricKotlinVersionId=5Aq3SFbi # Mod Properties mavenGroup=com.github.eth0net modId=enchant-menu -modVersion=1.1.0+fabric-1.19 -modVersionName=1.1.0 Fabric 1.19 -modVersionType=release +modVersion=1.1.1-alpha+fabric-1.19 +modVersionName=1.1.1 Alpha Fabric 1.19 +modVersionType=alpha diff --git a/src/main/kotlin/com/github/eth0net/enchantmenu/screen/EnchantMenuScreenHandlerFactory.kt b/src/main/kotlin/com/github/eth0net/enchantmenu/screen/EnchantMenuScreenHandlerFactory.kt index 8e7bac0..0bb4991 100644 --- a/src/main/kotlin/com/github/eth0net/enchantmenu/screen/EnchantMenuScreenHandlerFactory.kt +++ b/src/main/kotlin/com/github/eth0net/enchantmenu/screen/EnchantMenuScreenHandlerFactory.kt @@ -3,12 +3,13 @@ package com.github.eth0net.enchantmenu.screen import net.minecraft.entity.player.PlayerEntity import net.minecraft.entity.player.PlayerInventory import net.minecraft.screen.NamedScreenHandlerFactory +import net.minecraft.screen.ScreenHandlerContext import net.minecraft.text.MutableText import net.minecraft.text.Text object EnchantMenuScreenHandlerFactory : NamedScreenHandlerFactory { override fun createMenu(syncId: Int, inv: PlayerInventory, player: PlayerEntity): EnchantMenuScreenHandler { - return EnchantMenuScreenHandler(syncId, inv) + return EnchantMenuScreenHandler(syncId, inv, ScreenHandlerContext.create(player.world, player.blockPos)) } override fun getDisplayName(): MutableText = Text.translatable("enchant-menu.title")