Fabric API

Fabric API

108M Downloads

Persistent state types should support null data fixer types

haykam821 opened this issue ยท 1 comments

commented

As of Minecraft 1.20.2, persistent state types must be constructed with a data fixer type. If the data fixer type is null, then the following exception will be logged when loading the persistent state:

java.lang.NullPointerException: Cannot invoke "net.minecraft.datafixer.DataFixTypes.update(com.mojang.datafixers.DataFixer, net.minecraft.nbt.NbtCompound, int, int)" because "dataFixTypes" is null
commented

Adding to that it would only be single change, since a method from DatafixerType is only once called afaik.