-
Posts
5 -
Joined
-
Last visited
Posts posted by TheUltimateEngine
-
-
Sorry if this sounds dumb, but what exactly is invalid about it?
-
github.com/tetlu/forge1.16.5_battlemobs
-
Hello,
I've been trying to mod multiple entities (in this case mobs) into the game. After initially having quite a bit of trouble with the new syntax (last time I wrote a Forge mod was in 1.8) I started to look into existing mods in order to figure things out.
I actually managed to get a single entity to work properly with some mostly copy-pasted code, but after adding a second one, upon trying to summon it, the EntityRenderManager crashed the game with the crash report description that is in the title.
I since rewrote a lot of code because after searching through a bunch of forums it turned out the code I had earlier had a bunch of depreciated stuff in it, but now after the rewrite I still get the same crash but now with both entites (a.k.a. none of them work now).
The full crash report is as follows: https://pastebin.com/0eRdCCxM
My code:
Main Class: https://pastebin.com/6E8nVpqP
Rendering Registries: https://pastebin.com/jn2yx69c
Entity Registries and Attribute Init: https://pastebin.com/zyrtsLeb
Renderer Classes (both are pretty much the same): https://pastebin.com/7wgdSbJN
-
This is my first time posting on this forum, so I don't know If I should make a completely new post for this, but I am having trouble with a similar thing.
EntityRenderManager.shouldRender is throwing a NullPointerException, but the decription is "Unexpected Error".
I tried doing what OP did but it didn't fix anything. I have seperate classes for the Renderers though and it might have something to do with that.
Can I just post my code here or should I create a new topic as mentioned? (Dont wanna upset anyone)
[SOLVED] [1.16.5] EntityRenderManager NullPointerException: Unexpected Error
in Modder Support
Posted
Yeah, that fixed it. It's the smallest things sometimes.
Thanks for the help.