Lang.Nullpointer expetion being caused when I move around in the world
Shibva opened this issue · 20 comments
Some information
Operating system: windows 10
Java version: 8
Minecraft version 1.16.5:
Baritone version: 1.6.3 (unmodified)
Other mods (if used):
will list if nessisary
Exception, error or logs
idk what the issue is, when I walk around in the world the screen goes black and gives me a lang.nullpointerexception and takes to the server multiplayer screen, it dosent crash it
How to reproduce
???
Modified settings
None
Final checklist
- I know how to properly use check boxes
- I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- I have included logs, exceptions and / or steps to reproduce the issue.
- I have not used any OwO's or UwU's in this issue.
heres the log (turns out this issue is non-exisitent in version 1.6.
latest.log
2
java.lang.ClassCastException: net.minecraft.network.play.ServerPlayNetHandler cannot be cast to net.minecraft.client.network.play.IClientPlayNetHandler
its aroudn this line that it happend when I got disconected
until this issue can be resloved and a build is avalable with this fix ill be using 1.6.2 (seems to be the only stable version rn for some reason)
also sorry ti took so long to get back I thougt the issue resolved itself but turned out I was using 1.6.2 instead of 1.6.3 (thanks to one question i posted here earlier)
No, everything is outputted in the same debug log as every other mod. The only other information is the modified settings, but you have already said none.
java.lang.ClassCastException: net.minecraft.network.play.ServerPlayNetHandler cannot be cast to net.minecraft.client.network.play.IClientPlayNetHandler
its aroudn this line that it happend when I got disconected
I can't find this issue in this log, is it possible that you could send me a full log? it seem to be missing the last section.
what?
that was the entire... hold on
2021-10-31-2.log
this should be it, right here
note: shaders ARE present but this was not an issue when using 1.6.2 and wasent when I was using 1.6.3 presumably in the past
ugh, thats going to be a pain, but if it means taht a hotfix might be released to correct this issue then yes, ill do the binary method. this may take some time
I will also note that this issue is not present when IP is installed, did by chance you merge the IP fix into 1.6.3 cus if you did than thats the issue its looking for the IP blocks instead of having some method of being able to use that only when Immersive portals is present
I can see what your talking about it leaving, however I can't see any crashes, can you try removing your mods until you find the one that is causing this issue, or if it is the server?
the issue was that baritone was not able to pathfind when IP was present, if you included a fix to that then I belive that fix did not acount for when the mod IS NOT present and if this is the case then thats the issue theoredicaly speacking since it was ment to only look for IP portal blocks and not the regular portal blocks or something
if it is, then it might be wise to impliment some sort of If statement for it to account for IP portal blocks is the mod Immersive Portals is present and if its not its else statement would be the regular portal blocks
that might be an explination, though if this is not the case and the fix for IP was not included in 1.6.3 let me know and ill do the binary method to find the issue
and no, i dint donwload the one form wagyourtails respitory, I redowloaded the one from here
but it is when baritone is present, only when I use 1.6.3
1.6.2 however is fine with the current mods I have
The immersive portals fix is not merged and is a no-op when Immersive Portals is not installed. The mixin silently fails to apply with just two lines of log for the ClassNotFoundException and the settings code to include the portal placeholder blocks in blocksToAvoid only does something if there is a block with the correct id registered.