Currently the registered ItemPropertyFunctions call Level#registryAccess without checking if the level is null.
This will lead to NPE if the supplied level is null.
I encountered this when inserting an iron sword into a Create Depot.
The way I fixed it will probably mean that trims won't show up if the level is null, but I don't know of a better way to fix that, since RegistryAccess#EMPTY will lead to the same result.
Currently the registered
ItemPropertyFunction
s callLevel#registryAccess
without checking if the level isnull
. This will lead to NPE if the supplied level isnull
. I encountered this when inserting an iron sword into a Create Depot. The way I fixed it will probably mean that trims won't show up if the level isnull
, but I don't know of a better way to fix that, sinceRegistryAccess#EMPTY
will lead to the same result.