From 8a6dafc3bb23b87d7edd42da48b4856d96b94158 Mon Sep 17 00:00:00 2001 From: Take Weiland Date: Wed, 23 Mar 2016 19:51:15 +0100 Subject: [PATCH] Fix BlockCrops.getDrops not respecting new age methods (for beetroots) --- patches/minecraft/net/minecraft/block/BlockCrops.java.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/minecraft/net/minecraft/block/BlockCrops.java.patch b/patches/minecraft/net/minecraft/block/BlockCrops.java.patch index 05b445d3c9..bd8c469962 100644 --- a/patches/minecraft/net/minecraft/block/BlockCrops.java.patch +++ b/patches/minecraft/net/minecraft/block/BlockCrops.java.patch @@ -32,16 +32,16 @@ + public java.util.List getDrops(net.minecraft.world.IBlockAccess world, BlockPos pos, IBlockState state, int fortune) + { + java.util.List ret = super.getDrops(world, pos, state, fortune); -+ int age = ((Integer)state.func_177229_b(func_185524_e())).intValue(); ++ int age = func_185527_x(state); + Random rand = world instanceof World ? ((World)world).field_73012_v : new Random(); + -+ if (age >= 7) ++ if (age >= func_185526_g()) + { + int k = 3 + fortune; + + for (int i = 0; i < 3 + fortune; ++i) + { -+ if (rand.nextInt(15) <= age) ++ if (rand.nextInt(2 * func_185526_g()) <= age) + { + ret.add(new ItemStack(this.func_149866_i(), 1, 0)); + }