mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed repair enchant downgrade
This commit is contained in:
parent
c88ada489a
commit
c45beec59d
@ -12,6 +12,7 @@ Version 1.3.10-dev
|
|||||||
+ Added ability for custom blocks to drop a range of items.
|
+ Added ability for custom blocks to drop a range of items.
|
||||||
+ Added Ability API functions
|
+ Added Ability API functions
|
||||||
+ Added 50% & 150% XP boost perks
|
+ Added 50% & 150% XP boost perks
|
||||||
|
= Fixed Repair enchant downgrade not working
|
||||||
= Fixed NPE caused by Spout players after a /reload
|
= Fixed NPE caused by Spout players after a /reload
|
||||||
= Fixed ConcurrentModificationException on world unload
|
= Fixed ConcurrentModificationException on world unload
|
||||||
= Fixed players never being removed from memory (memory leak)
|
= Fixed players never being removed from memory (memory leak)
|
||||||
|
@ -109,7 +109,7 @@ public class Repair {
|
|||||||
|
|
||||||
if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) {
|
if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) {
|
||||||
if (random.nextInt(100) <= getDowngradeChance(rank)) {
|
if (random.nextInt(100) <= getDowngradeChance(rank)) {
|
||||||
is.addEnchantment(enchantment, enchantLevel--);
|
is.addEnchantment(enchantment, --enchantLevel);
|
||||||
downgraded = true;
|
downgraded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user