mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-29 00:08:58 +00:00
Added null check. Fixes #490
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user