Fix fortune modifier always passed as 0 to idDropped closes #412

This commit is contained in:
LexManos 2013-02-15 04:49:33 -08:00
parent dcdd7c6c0e
commit e11feec55f

View file

@ -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)));