mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 06:24:27 +00:00
A couple more nulls
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user