YuRaNnNzZZ — Сегодня, в 18:27

thanks direwolf
This commit is contained in:
DBotThePony 2023-06-25 20:55:13 +07:00
parent bc340cc317
commit 7eaab24f9d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -552,8 +552,8 @@ object MatterManager {
if (resultItem.isEmpty) {
null
} else {
val width: Int
val height: Int
var width: Int
var height: Int
if (it is IShapedRecipe<*>) {
width = it.recipeWidth
@ -563,6 +563,11 @@ object MatterManager {
height = 3
}
if (width * height < it.ingredients.size) {
width = it.ingredients.size.coerceAtLeast(width)
height = it.ingredients.size.coerceAtLeast(height)
}
val container = TransientCraftingContainer(object : AbstractContainerMenu(null, 0) {
override fun quickMoveStack(pPlayer: Player, pIndex: Int): ItemStack {
return ItemStack.EMPTY