Readd null check

This commit is contained in:
koolkrafter5 committed 2025-10-07 15:16:06 -04:00
1 parent 571360b20e
commit 920ce49410
1 file changed
+1 -1
@@ -497,7 +497,7 @@ public class FMEventHandler {
if (event.source.getEntity() instanceof EntityPlayer) {
ItemStack equip = ((EntityPlayer) event.source.getEntity()).getCurrentEquippedItem();
if (equip.getItem() instanceof ItemWandCasting) {
if (equip != null && equip.getItem() instanceof ItemWandCasting) {
String capTag = ((ItemWandCasting) equip.getItem()).getCap(equip).getTag();
if (capTag.equals("alchemical") || capTag.equals("blood_iron")
&& ((ItemWandCasting) equip.getItem()).getRod(equip).getTag().startsWith("blood")) {