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:
commit
9e475300f9
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
+ public java.util.List<ItemStack> getDrops(net.minecraft.world.IBlockAccess world, BlockPos pos, IBlockState state, int fortune)
|
+ 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);
|
+ 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();
|
+ Random rand = world instanceof World ? ((World)world).field_73012_v : new Random();
|
||||||
+
|
+
|
||||||
+ if (age >= 7)
|
+ if (age >= 7)
|
||||||
|
|
Loading…
Reference in a new issue