修复了只能使用背包中第一个潜影盒的bug

This commit is contained in:
张宇衡 2023-06-05 09:45:51 +08:00
parent 5d3e0cf7f3
commit 486f30c07b
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>site.deercloud</groupId> <groupId>site.deercloud</groupId>
<artifactId>LiteWorldEdit</artifactId> <artifactId>LiteWorldEdit</artifactId>
<version>1.5.12-SNAPSHOT</version> <version>1.5.13-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>LiteWorldEdit</name> <name>LiteWorldEdit</name>

View File

@ -100,7 +100,7 @@ public class Place extends Job {
Inventory boxInv = shulkerBox.getInventory(); Inventory boxInv = shulkerBox.getInventory();
int item_idx = boxInv.first(_block); int item_idx = boxInv.first(_block);
if (item_idx == -1) { if (item_idx == -1) {
return false; continue;
} }
// 把物品放到玩家物品栏 // 把物品放到玩家物品栏
_inventory.addItem(boxInv.getItem(item_idx)); _inventory.addItem(boxInv.getItem(item_idx));