Fix slot panel quick move display
This commit is contained in:
parent
c4bcab44e4
commit
da4c1108c2
@ -74,10 +74,10 @@ open class SlotPanel<out S : MatteryScreen<*>, out T : Slot> @JvmOverloads const
|
||||
screen.quickCraftSlots,
|
||||
screen.quickCraftingType,
|
||||
itemstack,
|
||||
slot.item.count
|
||||
if (slot.item.isEmpty) 0 else slot.item.count
|
||||
)
|
||||
|
||||
val k = Math.min(slot.item.count, slot.getMaxStackSize(itemstack))
|
||||
val k = itemstack.maxStackSize.coerceAtMost(slot.getMaxStackSize(itemstack))
|
||||
|
||||
if (itemstack.count > k) {
|
||||
countOverride = ChatFormatting.YELLOW.toString() + k
|
||||
|
Loading…
Reference in New Issue
Block a user