mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
use item max stack size and not material's
This commit is contained in:
parent
e4176404ac
commit
b8f46365a1
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ object CustomRecipeUtil {
|
|||
else {
|
||||
// test amount
|
||||
val resultItem = recipe.resultItem!! // we know exist as the recipe was returned to us
|
||||
val maxResultAmount = resultItem.type.maxStackSize/resultItem.amount
|
||||
val maxResultAmount = resultItem.maxStackSize/resultItem.amount
|
||||
val maxLeftAmount = leftItem.amount/recipe.leftItem!!.amount
|
||||
val maxRightAmount = if(rightItem == null){ maxLeftAmount } else{ rightItem.amount/recipe.rightItem!!.amount }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue