2.1.212 - Fixed herbalism exploit and added damage limit for XP

calculations used in combat
This commit is contained in:
nossr50
2022-04-28 18:31:10 -07:00
parent 4a8630262e
commit d19cf1e260
6 changed files with 35 additions and 2 deletions

View File

@ -732,7 +732,10 @@ public final class CombatUtils {
* @param primarySkillType The skill being used
* @param multiplier final XP result will be multiplied by this
*/
public static void processCombatXP(@NotNull McMMOPlayer mcMMOPlayer, @NotNull LivingEntity target, @NotNull PrimarySkillType primarySkillType, double multiplier) {
public static void processCombatXP(@NotNull McMMOPlayer mcMMOPlayer,
@NotNull LivingEntity target,
@NotNull PrimarySkillType primarySkillType,
double multiplier) {
double baseXP = 0;
XPGainReason xpGainReason;