mirror of
https://github.com/GTNewHorizons/ForbiddenMagic.git
synced 2026-10-25 20:22:25 +00:00
Readd null check
This commit is contained in:
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")) {
|
||||
|
||||
Reference in new issue
Block a user