A couple more nulls

This commit is contained in:
Vincent Lee committed 2017-01-16 14:29:16 -06:00
1 parent ec94aa640d
commit b04d6bbefa
8 files changed
+17 -21

No files matched your search

@@ -734,7 +734,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
private ILensEffect getLensInstance() {
ItemStack lens = getSourceLens();
if(lens != null && lens.getItem() instanceof ILensEffect)
if(!lens.isEmpty() && lens.getItem() instanceof ILensEffect)
return (ILensEffect) lens.getItem();
return null;