jokekid Posted September 11, 2015 Author Posted September 11, 2015 alright, the wolf is levelling up and all that stuff, now im finally using the WolfExtendedClass for something, for the sake of testing im making it evolve into an ocelot when it reaches it's max level, so more errors were bound to come. repo: https://github.com/jokekid/BattleCreatures/tree/GetPetsWithinRange im getting a null pointer exception right here: https://github.com/jokekid/BattleCreatures/blob/GetPetsWithinRange/src/main/java/com/jokekid/battlecreatures/extEntity/ExtendedTameable.java#L83 you guys are probably smacking your heads against the wall cuz i made some stupid mistake, but sorry, im not seeing it Quote
jokekid Posted September 12, 2015 Author Posted September 12, 2015 player was null for a stupid mistake, instead of entity.getOwner(), i needed THIS.entity... so yeah, but now the ocelot won't spawn... EDIT: everything's working properly now,all i had to do was give the new entity it's coords, which is ez pz i also had to add a check to make sure a tameable entity actually had extended properties before trying to give it experience (ocelots dont have extended properties yet) so yes, i finally got this thing working fully, thanks a bunch diesieben07 you are my hero <3 Quote
jokekid Posted September 12, 2015 Author Posted September 12, 2015 EDIT: everything's working properly now,all i had to do was give the new entity it's coords, which is ez pz i also had to add a check to make sure a tameable entity actually had extended properties before trying to give it experience (ocelots dont have extended properties yet) so yes, i finally got this thing working fully, thanks a bunch diesieben07 you are my hero <3 for testing purposes i made the wolf evolve into an ocelot. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.