YuRaNnNzZZ — Сегодня, в 18:27
thanks direwolf
This commit is contained in:
parent
bc340cc317
commit
7eaab24f9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user