mirror of
https://github.com/GTNewHorizons/ForbiddenMagic.git
synced 2026-11-12 16:27:30 +00:00
Fixing stupid server crash
Oops
This commit is contained in:
1 parent
ba7a32484d
commit
9eecb9b799
1 file changed
+1
-1
@@ -359,7 +359,7 @@ public class FMEventHandler
|
||||
if(event.source.getEntity() != null && event.source.getEntity() instanceof EntityPlayer)
|
||||
{
|
||||
ItemStack equip = ((EntityPlayer)event.source.getEntity()).getCurrentEquippedItem();
|
||||
if(equip.getItem() instanceof ItemWandCasting)
|
||||
if(equip != null && equip.getItem() instanceof ItemWandCasting)
|
||||
{
|
||||
if(((ItemWandCasting)equip.getItem()).getCap(equip).getTag().equals("alchemical")
|
||||
&& ((ItemWandCasting)equip.getItem()).getRod(equip).getTag().equals("blood"))
|
||||
|
||||
Reference in new issue
Block a user