Permalink
Browse files

Fixed CombineHarvester not collecting beetroot seeds.

  • Loading branch information...
me4502 committed Aug 27, 2017
1 parent 4ae9d1d commit 8533831e5e468867d171795b71260df3df6f22d6
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/main/java/com/sk89q/craftbook/util/BlockUtil.java
@@ -96,12 +96,19 @@ public static Location getBlockCentre(Block block) {
if(tool.getType() == Material.WOOD_SPADE || tool.getType() == Material.STONE_SPADE || tool.getType() == Material.IRON_SPADE || tool.getType() == Material.GOLD_SPADE || tool.getType() == Material.DIAMOND_SPADE)
drops.add(new ItemStack(Material.SNOW_BALL, block.getData() + 1));
break;
case CROPS:
case CROPS: {
drops.add(new ItemStack(Material.WHEAT, 1));
int amount = CraftBookPlugin.inst().getRandom().nextInt(4);
if(amount > 0)
if (amount > 0)
drops.add(new ItemStack(Material.SEEDS, amount));
break;
}
case BEETROOT_BLOCK:
drops.add(new ItemStack(Material.BEETROOT, 1));
int amount = CraftBookPlugin.inst().getRandom().nextInt(4);
if(amount > 0)
drops.add(new ItemStack(Material.BEETROOT_SEEDS, amount));
break;
case CARROT:
drops.add(new ItemStack(Material.CARROT_ITEM, 1 + CraftBookPlugin.inst().getRandom().nextInt(4)));
break;

0 comments on commit 8533831

Please sign in to comment.