From 14f1a91eeb324cfa4b8392d4beff707dd9adbbbe Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 2 Mar 2012 16:24:28 -0800 Subject: [PATCH] Fixed PVE experience gains not leveling up skills --- Changelog.txt | 4 ++-- src/main/java/com/gmail/nossr50/Combat.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 921f9d5b6..8837fec38 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -8,13 +8,13 @@ Key: - Removal Version 1.3.02 - + Added Ocelots to Taming XP tables. ! Changed Tree Feller to hand out 1/4 of normal XP for each JUNGLE LOG block it fells ! Changed Tree Feller to only fell trees if you have enough durability ! Changed Tree Feller to cause injury if your axe splinters from a failed Tree Feller attempt ! Changed invincibility checks in EntityDamage listeners to accommodate for vanilla MC behaviour ! Changed Ignition to add fire ticks rather than replacing them. - ! Fixed Impact proccing multiple times in a row + = Fixed Impact proccing multiple times in a row + = Fixed bug where PVE skills didn't level Version 1.3.01 = Fixed bug where Tree Feller had no cooldown diff --git a/src/main/java/com/gmail/nossr50/Combat.java b/src/main/java/com/gmail/nossr50/Combat.java index b48417c83..b14173636 100644 --- a/src/main/java/com/gmail/nossr50/Combat.java +++ b/src/main/java/com/gmail/nossr50/Combat.java @@ -361,6 +361,7 @@ public class Combat { int xp = getXp(target, damage); PPa.addXP(skillType, xp*10, attacker); + Skills.XpCheckSkill(skillType, attacker); } public static int getXp(Entity entity, int damage)