Skip to content

Commit

Permalink
final polish before release
Browse files Browse the repository at this point in the history
  • Loading branch information
way2muchnoise committed Feb 23, 2016
1 parent 88ac930 commit 1fb7c1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/jeresources/api/drop/DropItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public DropItem(ItemStack item, float chance)
this(item, chance, 0);
}

/**
* @param item the dropped {@link ItemStack}
* @param chance chance of drop, can be above 1 to indicate more than 1 drops
* @param fortuneLevel the fortune level needed for these results
*/
public DropItem(ItemStack item, float chance, int fortuneLevel)
{
this(item, (int)Math.floor(chance), (int)Math.ceil(chance), chance, fortuneLevel);
Expand Down Expand Up @@ -164,11 +169,6 @@ public float getSortIndex()
return sortIndex;
}

public String getFortuneLevel()
{
return StatCollector.translateToLocal("enchantment.level." + fortuneLevel);
}

@Override
public int compareTo(DropItem o)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/jeresources/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jer.worldgen.biomes=Spawn Biomes
jer.worldgen.dimensions=Valid Dimensions
jer.worldgen.drops=Drops
jer.worldgen.average=Avg. Drops
jer.worldgen.base=Base
jer.worldgen.base=Normal

#Mob View
jer.mob.title=Mob Drops
Expand Down

0 comments on commit 1fb7c1c

Please sign in to comment.