mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed bugs with Herbalism and permissions
This commit is contained in:
parent
74188415dd
commit
a90e4e9c8d
@ -10,6 +10,7 @@ Key:
|
|||||||
Version 1.3.06-dev
|
Version 1.3.06-dev
|
||||||
+ Added permissions check to skill functions
|
+ Added permissions check to skill functions
|
||||||
+ Added API functions for obtaining offline profiles & profiles via player names
|
+ Added API functions for obtaining offline profiles & profiles via player names
|
||||||
|
= Fixed bug where Herbalism required double drops permission to give XP
|
||||||
= Fixed bug where {0} would be displayed in front of your power level in mcstats
|
= Fixed bug where {0} would be displayed in front of your power level in mcstats
|
||||||
= Fixed mmoupdate not being useable from console
|
= Fixed mmoupdate not being useable from console
|
||||||
= Fixed bug with repairing wooden tools
|
= Fixed bug with repairing wooden tools
|
||||||
|
@ -155,7 +155,7 @@ public class mcBlockListener implements Listener {
|
|||||||
Herbalism.herbalismProcCheck(block, player, event, plugin);
|
Herbalism.herbalismProcCheck(block, player, event, plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().herbalismDoubleDrops(player) && Herbalism.canBeGreenTerra(mat)) {
|
if (mcPermissions.getInstance().herbalism(player) && Herbalism.canBeGreenTerra(mat)) {
|
||||||
Herbalism.herbalismProcCheck(block, player, event, plugin);
|
Herbalism.herbalismProcCheck(block, player, event, plugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,8 +227,7 @@ public class Herbalism {
|
|||||||
|
|
||||||
if (mat == null) {
|
if (mat == null) {
|
||||||
return;
|
return;
|
||||||
}
|
} else if (mcPermissions.getInstance().herbalismDoubleDrops(player)) {
|
||||||
else {
|
|
||||||
ItemStack is = new ItemStack(mat);
|
ItemStack is = new ItemStack(mat);
|
||||||
|
|
||||||
if (herbLevel > MAX_BONUS_LEVEL || random.nextInt(1000) <= herbLevel) {
|
if (herbLevel > MAX_BONUS_LEVEL || random.nextInt(1000) <= herbLevel) {
|
||||||
@ -250,11 +249,11 @@ public class Herbalism {
|
|||||||
m.mcDropItem(loc, is);
|
m.mcDropItem(loc, is);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PP.addXP(SkillType.HERBALISM, xp);
|
PP.addXP(SkillType.HERBALISM, xp);
|
||||||
Skills.XpCheckSkill(SkillType.HERBALISM, player);
|
Skills.XpCheckSkill(SkillType.HERBALISM, player);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply the Green Thumb ability to crops.
|
* Apply the Green Thumb ability to crops.
|
||||||
|
Loading…
Reference in New Issue
Block a user