mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-26 12:16:18 +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<>();
|
Map<Material, Integer> items = new HashMap<>();
|
||||||
for (ItemStack item : ingredientMap) {
|
for (ItemStack item : ingredientMap) {
|
||||||
|
if (item == null) continue;
|
||||||
if (!items.containsKey(item.getType())) {
|
if (!items.containsKey(item.getType())) {
|
||||||
items.put(item.getType(), item.getAmount());
|
items.put(item.getType(), item.getAmount());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user