9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 02:49:15 +00:00

fix(bukkit): 修复忘记更改的地方

This commit is contained in:
jhqwqmc
2025-02-12 07:11:16 +08:00
parent 9a956f95dd
commit b3eeea6415

View File

@@ -356,7 +356,7 @@ public class PacketConsumers {
}
if (emptySlot != -1) {
inventory.setHeldItemSlot(emptySlot);
ItemUtils.setItem(inventory, emptySlot, itemStack);
inventory.setItem(emptySlot, itemStack);
} else {
BukkitCraftEngine.instance().scheduler().sync().runDelayed(() -> inventory.setItem(slot - 36, itemStack));
}