This should be like this.

This commit is contained in:
Brianna O'Keefe 2018-10-07 10:37:49 -04:00
parent 1a136125f9
commit 5f97cc646c

View File

@ -76,7 +76,7 @@ public class FarmTask extends BukkitRunnable {
ItemStack stack = new ItemStack(cropTypeData.getYieldMaterial(), (useBoneMeal(farm) ? random.nextInt(2) + 2 : 1) * (boostData == null ? 1 : boostData.getMultiplier()));
ItemStack seedStack = new ItemStack(cropTypeData.getSeedMaterial(), random.nextInt(3) + 1 + (useBoneMeal(farm) ? 1 : 0));
if (!canMove(farm.getInventory(), stack)) return false;
if (!canMove(farm.getInventory(), stack) || !canMove(farm.getInventory(), seedStack)) return false;
Methods.animate(farm.getLocation(), cropTypeData.getYieldMaterial());
farm.getInventory().addItem(stack);
farm.getInventory().addItem(seedStack);