9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 16:09:24 +00:00

Fixed air drops being stored

This commit is contained in:
Auxilor
2021-02-01 08:50:44 +00:00
parent 69839850f7
commit 77fd041695

View File

@@ -143,6 +143,9 @@ public class IllusionerOptions extends PluginDependent {
drops = new HashSet<>(); drops = new HashSet<>();
IllusionerConfigs.DROPS.getConfig().getKeys(false).forEach(key -> { IllusionerConfigs.DROPS.getConfig().getKeys(false).forEach(key -> {
ItemStack itemStack = IllusionerConfigs.DROPS.getConfig().getItemStack(key); ItemStack itemStack = IllusionerConfigs.DROPS.getConfig().getItemStack(key);
if (itemStack == null || itemStack.getType() == Material.AIR) {
return;
}
drops.add(itemStack); drops.add(itemStack);
}); });
} }