Disguises Cannot cast AgeableWatcher to VillagerWatcher

Discussion in 'Lib's Plugins' started by amadornes1, Sep 30, 2013.

  1. I'm currently doing:
    Code (Text):
    Disguise d = new MiscDisguise(DisguiseType.VILLAGER);
    VillagerWater w = (VillagerWatcher) d.getWatcher();//Crash!
    and I get this error:
    http://gyazo.com/f3f4f0757fe6369d9aa459a2fb30e1b1

    Any ideas on what's happening?

    Also, I'm on 7.6.3 and "Fixed mob disguises being babys as default." isn't working for me. They always appear as babys if I don't change it in the code which, as you can see above, doesn't work (I'm using VillagerWatcher because I also want to set its profession)
     
    #1 amadornes1, Sep 30, 2013
    Last edited: Sep 30, 2013
  2. libraryaddict

    Patron

    Found the issue.
    Because of the changes to the package names, the class getter was checking for the wrong class.
    It will be fixed in next release which is a eta of a week, unless you need it sooner?
     
  3. Well... I think I could wait a week if it's needed. I can work on other parts of the plugin for now, and when it's out I'll continue working on the disguise part :)