Fixing spacing issues and making herbalism drop cocoa beans instead of a cocoa block.

This commit is contained in:
Glitchfinder 2012-10-17 21:26:16 -07:00
parent 70a16fe344
commit 31513d52d7
2 changed files with 11 additions and 6 deletions

View File

@ -217,9 +217,14 @@ public class Herbalism {
if (customPlant) { if (customPlant) {
is = new ItemStack(ModChecks.getCustomBlock(block).getItemDrop()); is = new ItemStack(ModChecks.getCustomBlock(block).getItemDrop());
} }
else {
if (mat == Material.COCOA) {
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
}
else { else {
is = new ItemStack(mat); is = new ItemStack(mat);
} }
}
if (herbLevel > MAX_BONUS_LEVEL || random.nextInt(randomChance) <= herbLevel) { if (herbLevel > MAX_BONUS_LEVEL || random.nextInt(randomChance) <= herbLevel) {
Config configInstance = Config.getInstance(); Config configInstance = Config.getInstance();