[1.10.2] [Levels r4.1.3] [Immersive Engineering 0.10-47] Nullpointer on Ability Selection with IE Railgun
Alaberti opened this issue ยท 10 comments
Seems Levels and the IE railgun don't get along very well.
@BluSunrize Sorry to summon you from the ether, do you have any super-secret defense against the dark arts insight on this?
As far as I am aware this issue should lie on Levels side? But given that this is closed source? No idea. Would be great if the dev could say something on this? =P
It would lol looks like it broke at https://github.com/TheXFactor117/Levels/blob/1.10.2/src/main/java/com/thexfactor117/levels/leveling/AbilitySelection.java at 37 when there was nothing catching it; I imagine the railgun had null for level or something and there's nothing there to catch the error.
Ah ha, https://github.com/TheXFactor117/Levels/blob/1.10.2/src/main/java/com/thexfactor117/levels/events/EventLivingDeath.java line 124 - this is where it gets the xp prior to leveling the weapon which is when the ability selection comes into play. @BluSunrize Are railgun projectiles an instanceof EntityArrow? I'm going to assume you do your own thing?
Not a problem, just trying to get to the bottom of it myself if need be lol but @TheXFactor117 would have invaluable insight
Nope. They extend arrows because projectiles don't sync properly otherwise
Also, apologies, seems like this isn't closed source, the master branch just lacks code =P
Sorry about not responding more quickly. I'd imagine this is something pretty easy to fix. So I'm assuming Levels is trying to add its systems onto the railgun right? And when the railgun is used, stuff doesn't work properly?
@BluSunrize Does the railgun extend ItemBow or no? This system might not work properly if it isn't.
Regardless, I'm in the process of redesigning the entire mod. I've got a list of issues I need to fix when I get around to rewriting the mod, so there is nothing I will be able to do about it now in terms of like a hotfix.
@TheXFactor117 I absolutely blanked on replying to this, I apologize!
No, the Railgun does not extend Bow, but the projectile extends Arrows because otherwise they'd desync.
@TheXFactor117 That sums it up in a nutshell from what I can see. It seems like the problem only happens on a last-hit.