Fix fortune modifier always passed as 0 to idDropped closes #412
This commit is contained in:
parent
dcdd7c6c0e
commit
e11feec55f
1 changed files with 3 additions and 3 deletions
|
@ -486,7 +486,7 @@
|
||||||
+ int count = quantityDropped(metadata, fortune, world.rand);
|
+ int count = quantityDropped(metadata, fortune, world.rand);
|
||||||
+ for(int i = 0; i < count; i++)
|
+ for(int i = 0; i < count; i++)
|
||||||
+ {
|
+ {
|
||||||
+ int id = idDropped(metadata, world.rand, 0);
|
+ int id = idDropped(metadata, world.rand, fortune);
|
||||||
+ if (id > 0)
|
+ if (id > 0)
|
||||||
+ {
|
+ {
|
||||||
+ ret.add(new ItemStack(id, 1, damageDropped(metadata)));
|
+ ret.add(new ItemStack(id, 1, damageDropped(metadata)));
|
||||||
|
|
Loading…
Reference in a new issue