ProtocolLib

3M Downloads

Paper 1.17: Unable to find field PLAINS in class net.minecraft.world.entity.npc.VillagerType.

Dymeth opened this issue ยท 0 comments

commented

I tried to create a WrappedVillagerData using Wrappers:
WrappedVillagerData.fromValues(WrappedVillagerData.Type.PLAINS, WrappedVillagerData.Profession.NONE, 1);

When trying to do this:

java.lang.IllegalArgumentException: Unable to find field PLAINS in class net.minecraft.world.entity.npc.VillagerType.
	at ProtocolLib.jar//com.comphenix.protocol.reflect.ExactReflection.getField(ExactReflection.java:115)
	at ProtocolLib.jar//com.comphenix.protocol.reflect.ExactReflection.getField(ExactReflection.java:114)
	at ProtocolLib.jar//com.comphenix.protocol.reflect.ExactReflection.getField(ExactReflection.java:99)
	at ProtocolLib.jar//com.comphenix.protocol.reflect.accessors.Accessors.getFieldAccessor(Accessors.java:87)
	at ProtocolLib.jar//com.comphenix.protocol.wrappers.EnumWrappers$FauxEnumConverter.getGeneric(EnumWrappers.java:911)
	at ProtocolLib.jar//com.comphenix.protocol.wrappers.EnumWrappers$FauxEnumConverter.getGeneric(EnumWrappers.java:892)
	at ProtocolLib.jar//com.comphenix.protocol.wrappers.WrappedVillagerData.fromValues(WrappedVillagerData.java:53)

Server version: Paper version git-Paper-228 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: ba17733)
ProtocolLib version: 4.7.1-SNAPSHOT-b531