mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-30 20:48:19 +01:00
Fixing spacing issues and making herbalism drop cocoa beans instead of a cocoa block.
This commit is contained in:
parent
70a16fe344
commit
31513d52d7
@ -218,7 +218,12 @@ public class Herbalism {
|
|||||||
is = new ItemStack(ModChecks.getCustomBlock(block).getItemDrop());
|
is = new ItemStack(ModChecks.getCustomBlock(block).getItemDrop());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
is = new ItemStack(mat);
|
if (mat == Material.COCOA) {
|
||||||
|
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
is = new ItemStack(mat);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (herbLevel > MAX_BONUS_LEVEL || random.nextInt(randomChance) <= herbLevel) {
|
if (herbLevel > MAX_BONUS_LEVEL || random.nextInt(randomChance) <= herbLevel) {
|
||||||
|
@ -52,8 +52,8 @@ public class BlockChecks {
|
|||||||
case VINE:
|
case VINE:
|
||||||
case WATER_LILY:
|
case WATER_LILY:
|
||||||
case YELLOW_FLOWER:
|
case YELLOW_FLOWER:
|
||||||
case COCOA:
|
case COCOA:
|
||||||
case EMERALD_ORE:
|
case EMERALD_ORE:
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -125,7 +125,7 @@ public class BlockChecks {
|
|||||||
case IRON_ORE:
|
case IRON_ORE:
|
||||||
case LAPIS_ORE:
|
case LAPIS_ORE:
|
||||||
case REDSTONE_ORE:
|
case REDSTONE_ORE:
|
||||||
case EMERALD_ORE:
|
case EMERALD_ORE:
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -178,7 +178,7 @@ public class BlockChecks {
|
|||||||
case VINE:
|
case VINE:
|
||||||
case WATER_LILY:
|
case WATER_LILY:
|
||||||
case YELLOW_FLOWER:
|
case YELLOW_FLOWER:
|
||||||
case COCOA:
|
case COCOA:
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case CROPS:
|
case CROPS:
|
||||||
@ -221,7 +221,7 @@ public class BlockChecks {
|
|||||||
case REDSTONE_ORE:
|
case REDSTONE_ORE:
|
||||||
case SANDSTONE:
|
case SANDSTONE:
|
||||||
case STONE:
|
case STONE:
|
||||||
case EMERALD_ORE:
|
case EMERALD_ORE:
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user