mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Nerfing overpowered Herbalism double drops for melons and netherwart.
This commit is contained in:
parent
a56f805787
commit
4a52135a0b
@ -267,7 +267,6 @@ public class Herbalism {
|
|||||||
else if (mat == Material.POTATO) {
|
else if (mat == Material.POTATO) {
|
||||||
is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0);
|
is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
is = new ItemStack(mat);
|
is = new ItemStack(mat);
|
||||||
}
|
}
|
||||||
@ -297,15 +296,13 @@ public class Herbalism {
|
|||||||
|
|
||||||
case MELON_BLOCK:
|
case MELON_BLOCK:
|
||||||
if (configInstance.getMelonsDoubleDropsEnabled()) {
|
if (configInstance.getMelonsDoubleDropsEnabled()) {
|
||||||
Misc.dropItems(location, is, 3);
|
Misc.dropItem(location, is);
|
||||||
Misc.randomDropItems(location, is, 50, 4);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NETHER_WARTS:
|
case NETHER_WARTS:
|
||||||
if (configInstance.getNetherWartsDoubleDropsEnabled()) {
|
if (configInstance.getNetherWartsDoubleDropsEnabled()) {
|
||||||
Misc.dropItems(location, is, 2);
|
Misc.dropItem(location, is);
|
||||||
Misc.randomDropItems(location, is, 50, 3);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ public class Misc {
|
|||||||
* @param is The item to drop
|
* @param is The item to drop
|
||||||
* @param chance The percentage chance for the item to drop
|
* @param chance The percentage chance for the item to drop
|
||||||
*/
|
*/
|
||||||
public static void randomDropItem(Location location, ItemStack is, double chance) {
|
public static void randomDropItem(Location location, ItemStack is, int chance) {
|
||||||
if (random.nextInt(100) < chance) {
|
if (random.nextInt(100) < chance) {
|
||||||
dropItem(location, is);
|
dropItem(location, is);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user