mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Merge pull request #278 from Glitchfinder/master
Basic update for 1.4.2
This commit is contained in:
@ -201,6 +201,20 @@ public class Herbalism {
|
||||
}
|
||||
break;
|
||||
|
||||
case CARROT:
|
||||
if (((byte) data) == 0x3) {
|
||||
mat = Material.CARROT;
|
||||
xp = Config.getInstance().getHerbalismXPCarrot();
|
||||
}
|
||||
break;
|
||||
|
||||
case POTATO:
|
||||
if (((byte) data) == 0x3) {
|
||||
mat = Material.POTATO;
|
||||
xp = Config.getInstance().getHerbalismXPPotato();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customHerbalismBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
|
||||
customPlant = true;
|
||||
@ -223,6 +237,13 @@ public class Herbalism {
|
||||
if (mat == Material.COCOA) {
|
||||
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
||||
}
|
||||
else if (mat == Material.COCOA) {
|
||||
is = new ItemStack(Material.CARROT_ITEM, 1, (short) 0);
|
||||
}
|
||||
else if (mat == Material.COCOA) {
|
||||
is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0);
|
||||
}
|
||||
|
||||
else {
|
||||
is = new ItemStack(mat);
|
||||
}
|
||||
@ -306,6 +327,18 @@ public class Herbalism {
|
||||
}
|
||||
break;
|
||||
|
||||
case CARROT:
|
||||
if (configInstance.getCarrotDoubleDropsEnabled()) {
|
||||
Misc.dropItem(location, is);
|
||||
}
|
||||
break;
|
||||
|
||||
case POTATO:
|
||||
if (configInstance.getPotatoDoubleDropsEnabled()) {
|
||||
Misc.dropItem(location, is);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if (customPlant) {
|
||||
CustomBlock customBlock = ModChecks.getCustomBlock(block);
|
||||
|
Reference in New Issue
Block a user