Call setByPlayer instead of set on slots when quickmoving

This commit is contained in:
DBotThePony 2023-08-21 11:08:39 +07:00
parent 4356117f7d
commit 6fc06a620f
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -606,7 +606,7 @@ abstract class MatteryMenu(
val copy = source.item.copy()
if (remainder.isEmpty) {
source.set(ItemStack.EMPTY)
source.setByPlayer(ItemStack.EMPTY)
source.onTake(player, copy)
} else {
copy.count = source.item.count - remainder.count
@ -666,7 +666,7 @@ abstract class MatteryMenu(
val newCount = copy.count.coerceAtMost(limit)
if (!simulate) {
slot.set(copy.copy().also { it.count = newCount })
slot.setByPlayer(copy.copy().also { it.count = newCount })
slot.setChanged()
}