9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-31 04:46:36 +00:00
This commit is contained in:
Xiao-MoMi
2023-01-13 16:25:47 +08:00
parent 97fd04b017
commit 515e2d13b5
11 changed files with 239 additions and 61 deletions

View File

@@ -204,7 +204,7 @@ public class LootManager extends Function {
if (material.contains(":")) {
continue;
}
Item item = new Item(Material.valueOf(material.toUpperCase()));
Item item = new Item(Material.valueOf(material.toUpperCase()), key);
BonusManager.setItemProperties(config, key, item);
if (item.getMaterial() == Material.AIR) LOOTITEMS.put(key, new ItemStack(Material.AIR));
else LOOTITEMS.put(key, ItemStackUtil.getFromItem(item));