Open Kowaman opened 3 months ago
The field you're trying to set doesn't exist as it has a different type: net.minecraft.core.Holder<net.minecraft.world.level.dimension.DimensionType>
. This type requires retrieval from some sort of registry due to the Holder
.
The behavior you're experiencing for the fix is intended, as many fields can no longer be initialized with non-null values as of version 1.20.5. This is why you encounter a NullPointerException
—the field currently holds a null
value.
Describe the bug Cannot create
RESPAWN
packet, errors as follows using 1.18.2 method:@ThomasMo54 documented this error in #2604, noting that the data was moved to an internal structure, and provided a fix for 1.20.2, though it does not seem to work in 1.20.6:
ProtocolLib Version:
ProtocolLib v5.3.0-SNAPSHOT-723