Fixed an infused grain crash

This commit is contained in:
Katrina Swales committed 2015-06-25 01:47:00 +01:00
1 parent 35340b2fcd
commit 7ff8a7a40e
1 file changed
+3 -1
@@ -131,7 +131,9 @@ public class BlockInfusedGrain extends BlockCrops implements ITTinkererBlock {
}
if (metadata >= 7) {
do {
ret.add(AspectCropLootManager.getLootForAspect(getAspect(world, x, y, z)));
ItemStack retItem=AspectCropLootManager.getLootForAspect(getAspect(world, x, y, z));
if(retItem!=null)
ret.add(retItem);
} while (world.rand.nextInt(75) < getPrimalTendencyCount(world, x, y, z, Aspect.ORDER));
}