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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user