Fixed Stems not droping a random number of seeds based on metadata, Closes #1087
This commit is contained in:
parent
83e7130216
commit
7b062dd390
|
@ -39,7 +39,12 @@
|
|||
{
|
||||
f1 = 3.0F;
|
||||
}
|
||||
@@ -215,7 +217,7 @@
|
||||
@@ -211,11 +213,12 @@
|
||||
return l < 7 ? -1 : (p_149873_1_.func_147439_a(p_149873_2_ - 1, p_149873_3_, p_149873_4_) == this.field_149877_a ? 0 : (p_149873_1_.func_147439_a(p_149873_2_ + 1, p_149873_3_, p_149873_4_) == this.field_149877_a ? 1 : (p_149873_1_.func_147439_a(p_149873_2_, p_149873_3_, p_149873_4_ - 1) == this.field_149877_a ? 2 : (p_149873_1_.func_147439_a(p_149873_2_, p_149873_3_, p_149873_4_ + 1) == this.field_149877_a ? 3 : -1))));
|
||||
}
|
||||
|
||||
+ @SuppressWarnings("unused")
|
||||
public void func_149690_a(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
|
||||
{
|
||||
super.func_149690_a(p_149690_1_, p_149690_2_, p_149690_3_, p_149690_4_, p_149690_5_, p_149690_6_, p_149690_7_);
|
||||
|
||||
|
@ -48,7 +53,7 @@
|
|||
{
|
||||
Item item = null;
|
||||
|
||||
@@ -282,4 +284,22 @@
|
||||
@@ -282,4 +285,23 @@
|
||||
{
|
||||
this.func_149874_m(p_149853_1_, p_149853_3_, p_149853_4_, p_149853_5_);
|
||||
}
|
||||
|
@ -65,7 +70,8 @@
|
|||
+
|
||||
+ for (int i = 0; item != null && i < 3; i++)
|
||||
+ {
|
||||
+ ret.add(new ItemStack(item));
|
||||
+ if (world.field_73012_v.nextInt(15) <= meta)
|
||||
+ ret.add(new ItemStack(item));
|
||||
+ }
|
||||
+
|
||||
+ return ret;
|
||||
|
|
Loading…
Reference in New Issue