magiccaster: high alchemy mode fix
This commit is contained in:
parent
23087efd2e
commit
3bd28de9da
|
@ -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"
|
||||
|
|
|
@ -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
Binary file not shown.
Loading…
Reference in New Issue