Skip to content

Commit

Permalink
Merge pull request ddevault#234 from Peroalane/master
Browse files Browse the repository at this point in the history
Fix grass seed drop
  • Loading branch information
ddevault committed Mar 20, 2016
2 parents fd42543 + e476546 commit 090e104
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TrueCraft.Core/Logic/Blocks/TallGrassBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ public override Tuple<int, int> GetTextureMap(byte metadata)
{
return new Tuple<int, int>(7, 2);
}

protected override ItemStack[] GetDrop(BlockDescriptor descriptor, ItemStack item)
{
return new[] { new ItemStack(SeedsItem.ItemID, (sbyte)MathHelper.Random.Next(2)) };
if (MathHelper.Random.Next (1, 24) == 1)
return new[] { new ItemStack (SeedsItem.ItemID, 1) };
else
return new[] { ItemStack.Empty };
}
}
}

0 comments on commit 090e104

Please sign in to comment.