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
|
@ -401,11 +401,11 @@
|
|||
+ {
|
||||
+ if (blockID == Block.netherrack.blockID && side == UP)
|
||||
+ {
|
||||
+ return true;
|
||||
+ return true;
|
||||
+ }
|
||||
+ if ((world.provider instanceof WorldProviderEnd) && blockID == Block.bedrock.blockID && side == UP)
|
||||
+ {
|
||||
+ return true;
|
||||
+ return true;
|
||||
+ }
|
||||
+ return false;
|
||||
+ }
|
||||
|
@ -486,7 +486,7 @@
|
|||
+ int count = quantityDropped(metadata, fortune, world.rand);
|
||||
+ for(int i = 0; i < count; i++)
|
||||
+ {
|
||||
+ int id = idDropped(metadata, world.rand, 0);
|
||||
+ int id = idDropped(metadata, world.rand, fortune);
|
||||
+ if (id > 0)
|
||||
+ {
|
||||
+ ret.add(new ItemStack(id, 1, damageDropped(metadata)));
|
||||
|
|
Loading…
Reference in a new issue