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()
|
val copy = source.item.copy()
|
||||||
|
|
||||||
if (remainder.isEmpty) {
|
if (remainder.isEmpty) {
|
||||||
source.set(ItemStack.EMPTY)
|
source.setByPlayer(ItemStack.EMPTY)
|
||||||
source.onTake(player, copy)
|
source.onTake(player, copy)
|
||||||
} else {
|
} else {
|
||||||
copy.count = source.item.count - remainder.count
|
copy.count = source.item.count - remainder.count
|
||||||
@ -666,7 +666,7 @@ abstract class MatteryMenu(
|
|||||||
val newCount = copy.count.coerceAtMost(limit)
|
val newCount = copy.count.coerceAtMost(limit)
|
||||||
|
|
||||||
if (!simulate) {
|
if (!simulate) {
|
||||||
slot.set(copy.copy().also { it.count = newCount })
|
slot.setByPlayer(copy.copy().also { it.count = newCount })
|
||||||
slot.setChanged()
|
slot.setChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user