Merge pull request #2586 from williewillus/fixcrops

[1.9] Fix BlockCrops looking for wrong AGE property for subclasses. Fix #2555
This commit is contained in:
LexManos 2016-03-19 21:13:18 -07:00
commit 9e475300f9
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
+ public java.util.List<ItemStack> getDrops(net.minecraft.world.IBlockAccess world, BlockPos pos, IBlockState state, int fortune)
+ {
+ java.util.List<ItemStack> ret = super.getDrops(world, pos, state, fortune);
+ int age = ((Integer)state.func_177229_b(field_176488_a)).intValue();
+ int age = ((Integer)state.func_177229_b(func_185524_e())).intValue();
+ Random rand = world instanceof World ? ((World)world).field_73012_v : new Random();
+
+ if (age >= 7)