Fix error for 1.12

This commit is contained in:
libraryaddict 2022-07-19 22:45:54 +12:00
parent 24b5ed14b8
commit 298ffa0c99

View File

@ -2269,7 +2269,7 @@ public class ReflectionManager {
return;
}
disguiseType.setTypeId(ReflectionManager.getEntityType(disguiseType.getEntityType()),
disguiseType.setTypeId(NmsVersion.v1_13.isSupported() ? ReflectionManager.getEntityType(disguiseType.getEntityType()) : null,
ReflectionManager.getEntityTypeId(disguiseType.getEntityType()));
Entity bukkitEntity = ReflectionManager.getBukkitEntity(nmsEntity);