mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixed bug where repairing an mcMMO ability-buffed item with mcMMO repair
could take the enchant but leave the lore tag
This commit is contained in:
parent
0d7c402c01
commit
cf82ae4c66
@ -11,6 +11,7 @@ Version 1.4.01-dev
|
|||||||
= Fixed bug where trying to use /mctop or /xplock with the Smelting child skill caused NPEs
|
= Fixed bug where trying to use /mctop or /xplock with the Smelting child skill caused NPEs
|
||||||
= Fixed bug where /mctop and /mcrank wouldn't show overall power levels for servers using Flatfile
|
= Fixed bug where /mctop and /mcrank wouldn't show overall power levels for servers using Flatfile
|
||||||
= Fixed bug where Smelting would throw consistent errors due to offline players
|
= Fixed bug where Smelting would throw consistent errors due to offline players
|
||||||
|
= Fixed bug where repairing an mcMMO ability-buffed item with mcMMO repair could take the enchant but leave the lore tag
|
||||||
|
|
||||||
Version 1.4.00
|
Version 1.4.00
|
||||||
+ Added new Child Skill - Smelting!
|
+ Added new Child Skill - Smelting!
|
||||||
|
@ -15,6 +15,7 @@ import com.gmail.nossr50.events.skills.repair.McMMOPlayerRepairCheckEvent;
|
|||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
import com.gmail.nossr50.util.StringUtils;
|
import com.gmail.nossr50.util.StringUtils;
|
||||||
|
import com.gmail.nossr50.util.skills.SkillUtils;
|
||||||
|
|
||||||
public class SimpleRepairManager implements RepairManager {
|
public class SimpleRepairManager implements RepairManager {
|
||||||
private HashMap<Integer, Repairable> repairables;
|
private HashMap<Integer, Repairable> repairables;
|
||||||
@ -108,6 +109,9 @@ public class SimpleRepairManager implements RepairManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear ability buffs before trying to repair.
|
||||||
|
SkillUtils.removeAbilityBuff(item);
|
||||||
|
|
||||||
// Lets get down to business,
|
// Lets get down to business,
|
||||||
// To defeat, the huns.
|
// To defeat, the huns.
|
||||||
int baseRepairAmount = repairable.getBaseRepairDurability(); // Did they send me daughters?
|
int baseRepairAmount = repairable.getBaseRepairDurability(); // Did they send me daughters?
|
||||||
|
Loading…
Reference in New Issue
Block a user