Added null check. Fixes #490

This commit is contained in:
nekosune committed 2014-09-08 18:25:36 +01:00
1 parent f6c172f6c8
commit f9aedca248
1 file changed
+2
@@ -34,6 +34,8 @@ public class AspectCropLootManager {
public static ItemStack getLootForAspect(Aspect aspect) {
HashMap<ItemStack, Integer> aspectHashmap = lootMap.get(aspect);
//Find total value of the possible ItemStacks for the aspect
if(aspectHashmap==null)
return null;
int sum = 0;
for (Integer i : aspectHashmap.values()) {