Call setByPlayer instead of set on slots when quickmoving
This commit is contained in:
parent
4356117f7d
commit
6fc06a620f
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user