mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-26 04:05:48 +01:00
fix for null pointer SD-293
This commit is contained in:
parent
7a3fad0cd7
commit
ad80634c32
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user