I have a mod called "Rush Pearls" and I want to update it to 1.19, and I've run into an issue that I'm not sure if its me being an idiot or a genuine bug but in my code there's this line:
EnderpearlReplacementEntity.shoot(_ent_sa, _ent_sa, _ent_sa.level.getRandom() , 0, 0, 0);
and I get this error:
The method shoot(Level, LivingEntity, Random, float, double, int) in the type EnderpearlReplacementEntity is not applicable for the arguments (Level, ServerPlayer, RandomSource, float, int, int)
I'm pretty sure they removed Random and replaced it with RandomSource but when I try to force shoot it, it still wants a Random value.
I should note all of this worked in 1.18.x
I'm still learning Java so sorry if I'm being really stupid