YuRaNnNzZZ — Сегодня, в 18:27
thanks direwolf
This commit is contained in:
parent
bc340cc317
commit
7eaab24f9d
@ -552,8 +552,8 @@ object MatterManager {
|
|||||||
if (resultItem.isEmpty) {
|
if (resultItem.isEmpty) {
|
||||||
null
|
null
|
||||||
} else {
|
} else {
|
||||||
val width: Int
|
var width: Int
|
||||||
val height: Int
|
var height: Int
|
||||||
|
|
||||||
if (it is IShapedRecipe<*>) {
|
if (it is IShapedRecipe<*>) {
|
||||||
width = it.recipeWidth
|
width = it.recipeWidth
|
||||||
@ -563,6 +563,11 @@ object MatterManager {
|
|||||||
height = 3
|
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) {
|
val container = TransientCraftingContainer(object : AbstractContainerMenu(null, 0) {
|
||||||
override fun quickMoveStack(pPlayer: Player, pIndex: Int): ItemStack {
|
override fun quickMoveStack(pPlayer: Player, pIndex: Int): ItemStack {
|
||||||
return ItemStack.EMPTY
|
return ItemStack.EMPTY
|
||||||
|
Loading…
Reference in New Issue
Block a user