mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Update src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java
This commit is contained in:
parent
f8d525d797
commit
5f04ecfdd4
@ -191,6 +191,13 @@ public class Herbalism {
|
|||||||
xp = Config.getInstance().getHerbalismXPLilyPads();
|
xp = Config.getInstance().getHerbalismXPLilyPads();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case COCOA:
|
||||||
|
if (data == (byte) 0x2) {
|
||||||
|
mat = Material.COCOA;
|
||||||
|
xp = Config.getInstance().getHerbalismXPCocoa();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customHerbalismBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
|
if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customHerbalismBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
|
||||||
@ -285,6 +292,12 @@ public class Herbalism {
|
|||||||
Misc.dropItem(location, is);
|
Misc.dropItem(location, is);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case COCOA:
|
||||||
|
if (configInstance.getCocoaDoubleDropsEnabled()) {
|
||||||
|
Misc.dropItems(location, is);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (customPlant) {
|
if (customPlant) {
|
||||||
|
Loading…
Reference in New Issue
Block a user