Fix quick move not displaying proper item counts
This commit is contained in:
parent
c887025a6c
commit
dc2661db9a
@ -71,13 +71,12 @@ open class SlotPanel<out S : MatteryScreen<*>, out T : Slot> @JvmOverloads const
|
||||
itemstack = carried.copy()
|
||||
dragHit = true
|
||||
|
||||
AbstractContainerMenu.getQuickCraftPlaceCount(
|
||||
val k = Math.min(AbstractContainerMenu.getQuickCraftPlaceCount(
|
||||
screen.quickCraftSlots,
|
||||
screen.quickCraftingType,
|
||||
itemstack
|
||||
)
|
||||
) + slot.item.count, slot.getMaxStackSize(itemstack))
|
||||
|
||||
val k = Math.min(itemstack.maxStackSize, slot.getMaxStackSize(itemstack))
|
||||
if (itemstack.count > k) {
|
||||
countOverride = ChatFormatting.YELLOW.toString() + k
|
||||
itemstack.count = k
|
||||
|
Loading…
Reference in New Issue
Block a user