From 61d5c82efc76541339a1487f2d8a1696dd6be6e0 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Fri, 9 Dec 2016 22:43:45 -0500 Subject: [PATCH] Reduced rarity a little --- src/alisolarflare/components/fruit/GrassBreakListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alisolarflare/components/fruit/GrassBreakListener.java b/src/alisolarflare/components/fruit/GrassBreakListener.java index 4f03a95..6ae4836 100644 --- a/src/alisolarflare/components/fruit/GrassBreakListener.java +++ b/src/alisolarflare/components/fruit/GrassBreakListener.java @@ -19,13 +19,13 @@ public class GrassBreakListener implements Listener { Location location = event.getBlock().getLocation(); World world = event.getBlock().getWorld(); - /* + if (Math.random() > 0.05){ switch(world.getBiome(location.getBlockX(), location.getBlockZ())){ } - }*/ + } - switch((int) (Math.random()* 100)){ + switch((int) (Math.random()* 60)){ case 1: // 1% chance world.dropItem(location, new ItemStack(Material.CARROT_ITEM)); break;