mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-04 15:41:38 +00:00
fix(bukkit): 修复忘记更改的地方
This commit is contained in:
@@ -356,7 +356,7 @@ public class PacketConsumers {
|
|||||||
}
|
}
|
||||||
if (emptySlot != -1) {
|
if (emptySlot != -1) {
|
||||||
inventory.setHeldItemSlot(emptySlot);
|
inventory.setHeldItemSlot(emptySlot);
|
||||||
ItemUtils.setItem(inventory, emptySlot, itemStack);
|
inventory.setItem(emptySlot, itemStack);
|
||||||
} else {
|
} else {
|
||||||
BukkitCraftEngine.instance().scheduler().sync().runDelayed(() -> inventory.setItem(slot - 36, itemStack));
|
BukkitCraftEngine.instance().scheduler().sync().runDelayed(() -> inventory.setItem(slot - 36, itemStack));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user