fix for null pointer SD-293

This commit is contained in:
Brianna O'Keefe 2018-11-03 21:27:38 -04:00
parent 7a3fad0cd7
commit ad80634c32

View File

@ -53,6 +53,7 @@ public class ModuleAutoCrafting implements Module {
Map<Material, Integer> items = new HashMap<>();
for (ItemStack item : ingredientMap) {
if (item == null) continue;
if (!items.containsKey(item.getType())) {
items.put(item.getType(), item.getAmount());
} else {