You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forge version: 1.10.2-12.18.1.2039
Test case: link
FML logs: link
When an IForgeRegistryEntry is registered normally, it's expected to have its registry name set beforehand (or provided as an argument); this is then set as the name of its RegistryDelegate.
When an IForgeRegistryEntry (or more specifically a Block/Item) is added as a substitution alias, there's no check to see if its registry name has been set and the name of its RegistryDelegate is never updated.
If a replacement Block doesn't have a registry name, all of its variants display as the missing model in-world.
If a replacement Item doesn't have a registry name, it crashes the game with a NullPointerException thrown in ModelLoader#onPostBakeEvent.
I suggest that adding a substitution alias should set the registry and/or delegate name of the replacement object to the name that the substitution was added for.
The text was updated successfully, but these errors were encountered:
This shouldn't be an issue anymore since you need to set the registry name of the object you're trying to register to the registry name of the object you're trying to replace.
Forge version: 1.10.2-12.18.1.2039
Test case: link
FML logs: link
When an
IForgeRegistryEntry
is registered normally, it's expected to have its registry name set beforehand (or provided as an argument); this is then set as the name of itsRegistryDelegate
.When an
IForgeRegistryEntry
(or more specifically aBlock
/Item
) is added as a substitution alias, there's no check to see if its registry name has been set and the name of itsRegistryDelegate
is never updated.If a replacement
Block
doesn't have a registry name, all of its variants display as the missing model in-world.If a replacement
Item
doesn't have a registry name, it crashes the game with aNullPointerException
thrown inModelLoader#onPostBakeEvent
.I suggest that adding a substitution alias should set the registry and/or delegate name of the replacement object to the name that the substitution was added for.
The text was updated successfully, but these errors were encountered: