Tweaked OreDrop constructor
baseChance is now exposed to the rest of the world as a double, since it was just an error waiting to happen when somebody enters the % chance as stack size or vice versa.
This commit is contained in:
parent
999567e6df
commit
ace69fc5be
1 changed files with 2 additions and 2 deletions
|
@ -19,11 +19,11 @@ public class OreDrop
|
||||||
this.baseChance = 100;
|
this.baseChance = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OreDrop(ItemStack drop, Integer baseChance)
|
public OreDrop(ItemStack drop, double baseChance)
|
||||||
{
|
{
|
||||||
this.drop = drop;
|
this.drop = drop;
|
||||||
this.count = drop.stackSize;
|
this.count = drop.stackSize;
|
||||||
this.baseChance = baseChance;
|
this.baseChance = (int)(baseChance * 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getDrops(int fortuneLevel, Random random)
|
public ItemStack getDrops(int fortuneLevel, Random random)
|
||||||
|
|
Loading…
Add table
Reference in a new issue