magiccaster: high alchemy mode fix

This commit is contained in:
illumineawake 2020-09-23 17:01:43 +10:00
parent 23087efd2e
commit 3bd28de9da
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "2.7.0"
version = "2.8.0"
project.extra["PluginName"] = "Magic Caster"
project.extra["PluginDescription"] = "Illumine automated magic caster"

View File

@ -283,7 +283,7 @@ public class MagicCasterPlugin extends Plugin
{
return HANDLE_BREAK;
}
if (selectedSpell.getName().equals("High Alchemy"))
if (castType.getName().equals("High Alchemy"))
{
targetItem = getItem();
return (targetItem != null && targetItem.getQuantity() > 0) ? FIND_ITEM : ITEM_NOT_FOUND;
@ -325,7 +325,7 @@ public class MagicCasterPlugin extends Plugin
timeout = tickDelay();
break;
case ITEM_NOT_FOUND:
log.info("Item not found, config: {}, ID: {}, quantity {}", config.itemID(), targetItem.getId(), targetItem.getQuantity());
log.info("Item not found, config: {}", config.itemID());
utils.sendGameMessage("Item not found");
if (config.logout())
{

File diff suppressed because one or more lines are too long