I get a NullPointerException on my method onItemRightClick. Apparently 'props' is null, but I don't know why.
/* public ActionResult<ItemStack> onItemRightClick(final World worldIn, final EntityPlayer playerIn, final EnumHand handIn) {
final ItemStack stack = playerIn.getHeldItem(handIn);
final IJojoBAdvPlayerCap props = (IJojoBAdvPlayerCap)playerIn.getCapability((Capability)JojoBAdvProvider.JOJO_CAP, (EnumFacing)EnumFacing.NORTH);
if (stack == null) {
return (ActionResult<ItemStack>)new ActionResult(EnumActionResult.FAIL, (Object)stack);
}
if (props.getStandID() == 0) {
playerIn.setActiveHand(handIn);
return (ActionResult<ItemStack>)new ActionResult(EnumActionResult.SUCCESS, (Object)stack);
}
playerIn.sendMessage((ITextComponent)new TextComponentTranslation("msg.jojomod.standalready.txt", new Object[0]));
return (ActionResult<ItemStack>)new ActionResult(EnumActionResult.PASS, (Object)stack);
}
*/