Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottKillen committed Dec 14, 2014
2 parents 566905a + bed2a43 commit d2d4072
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Ancient Trees
**LATEST OFFICIAL VERSION**: [Ancient Trees 0.3.0 for MC 1.7.10][release]
[release]: https://github.com/MinecraftModArchive/Dendrology/releases/download/v0.3.0/AncientTrees-1.7.10-0.3.0.jar
**LATEST OFFICIAL VERSION**: [Ancient Trees 0.3.1 for MC 1.7.10][release]
[release]: https://github.com/MinecraftModArchive/Dendrology/releases/download/v0.3.0/AncientTrees-1.7.10-0.3.1.jar

[Contributing](#contributing)

Expand Down Expand Up @@ -30,7 +30,7 @@ Something not quite right? Have a suggestion? Found a bug? Create an issue no

##### Textures

Some textures from [The Painterly Pack][pack] by [Rhodox][rhodox_tweet] and friends. Used by permission.
Some textures are from [The Painterly Pack][pack] by [Rhodox][rhodox_tweet] and friends. Used by permission.

[pack]: http://painterlypack.net/
[rhodox_tweet]: https://twitter.com/PainterlyPack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ public String getUnlocalizedName()
@SuppressWarnings("ReturnOfNull")
public String getPotionEffect(ItemStack itemStack)
{
final ProvidesSapling sapling = trees.get(itemStack.getItemDamage());
final int itemDamage = itemStack.getItemDamage();
if (itemDamage > trees.size()) return null;

final ProvidesSapling sapling = trees.get(itemDamage);
return sapling instanceof ProvidesPotionEffect ? ((ProvidesPotionEffect) sapling).getPotionEffect() : null;
}

Expand Down
4 changes: 2 additions & 2 deletions version/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat, 13 Dec 2014 17:58:52 -0500
#Sun, 14 Dec 2014 00:15:22 -0500
mcversion=1.7.10
forgeversion=10.13.2.1235
version_major=0
version_series=3
version_revision=0
version_revision=1

0 comments on commit d2d4072

Please sign in to comment.