Skip to content

Commit

Permalink
Merge pull request #146 from Y2Kwastaken/main
Browse files Browse the repository at this point in the history
Fix Stonecutter Error
  • Loading branch information
mfnalex authored Feb 17, 2024
2 parents 60aeba0 + ef63f73 commit 79a26c2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import net.minecraft.world.inventory.GrindstoneMenu
import net.minecraft.world.inventory.LoomMenu
import net.minecraft.world.inventory.MenuConstructor
import net.minecraft.world.inventory.SmithingMenu
import net.minecraft.world.inventory.StonecutterMenu
import net.minecraft.world.level.block.Block
import net.minecraft.world.level.block.state.BlockState
import org.bukkit.event.inventory.InventoryType
Expand All @@ -29,6 +30,7 @@ object MenuBuilderImpl {
builder[InventoryType.CARTOGRAPHY] = worldAccess(::CartographyTableMenu)
builder[InventoryType.GRINDSTONE] = worldAccess(::GrindstoneMenu)
builder[InventoryType.SMITHING] = worldAccess(::SmithingMenu)
builder[InventoryType.STONECUTTER] = worldAccess(::StonecutterMenu)
}

init {
Expand All @@ -38,6 +40,7 @@ object MenuBuilderImpl {
titles[InventoryType.CARTOGRAPHY] = Component.translatable("container.cartography_table")
titles[InventoryType.GRINDSTONE] = Component.translatable("container.grindstone_title")
titles[InventoryType.SMITHING] = Component.translatable("container.upgrade")
titles[InventoryType.STONECUTTER] = Component.translatable("container.stonecutter")
}

fun build(
Expand Down

0 comments on commit 79a26c2

Please sign in to comment.