New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.12] Overriding items in registry throws NPE as override_owners is empty for vanilla items #4079
Comments
I've come across this as well, forgot about reporting it though. Can you verify that this only happens for Vanilla items? As far as I could tell (and I didn't look too deeply into this), this issue appears to be related to the taking of snapshots. On the first pass of gathering override owners, they all appeared to be present, on a second pass the map was empty, though. In the mod I'm actually requiring overrides in, I wasn't able to join an existing world, it worked for a new world, however. Obtaining any of the overriden items immediately crashed the game, however. Trying to reproduce this with a minimal test case (simply overriding any Vanilla item or block and doing nothing else), I wasn't even able to join new worlds anymore. |
Just tried with two items on my resource domain. It gave the error 'One of more entry values did not copy to the correct id. Check log for details!' Edit: I forgot to mention it isn't loading to the start screen anymore, it's crashing after the Init event now |
If you would a small test mod would be nice. |
https://pastebin.com/Ngr28hSn This is a minimal test case for the override owner list being empty. It'll crash the game upon joining a world. Tested with latest Forge. I can't speak for the "Registered override not have an associated owner object." error, though. |
Here is essentially what I was doing before. The three situations each give a different error, one of which is new - I am also aware of the annoyance of opening these as attachments. If I need to send something else I'll make a pastebin to put it in. Mod used (Won't let me upload with .java extension): crash report for vanilla part: Log for same domain part: |
Alright tested with a modified version of Paleo's test mod. |
I am currently trying to replace the vanilla horse armor with my own to expand upon it. When joining the world however, an NPE is thrown at
net.minecraftforge.registries.ForgeRegistry.getOverrideOwners(ForgeRegistry.java:684)
The debugger shows 'override_owners' to only contain items when it is my class. When the plain vanilla items come through, it is empty and results in 'owner' being null.
Some other notable things
minecraft:[iron | gold | diamond]_horse_armor
Here is the crash report and log
crash-2017-06-25_13.27.46-server.txt
latest.txt
The text was updated successfully, but these errors were encountered: