9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 02:49:11 +00:00
This commit is contained in:
Xiao-MoMi
2023-04-27 20:12:00 +08:00
parent 5195534528
commit 828b5ffbeb
17 changed files with 181 additions and 62 deletions

View File

@@ -137,10 +137,12 @@ public class IntegrationManager extends Function {
@NotNull
public ItemStack build(String key) {
for (ItemInterface itemInterface : itemInterfaces) {
ItemStack itemStack = itemInterface.build(key);
if (itemStack != null) {
return itemStack;
if (key != null) {
for (ItemInterface itemInterface : itemInterfaces) {
ItemStack itemStack = itemInterface.build(key);
if (itemStack != null) {
return itemStack;
}
}
}
return new ItemStack(Material.AIR);