added server side of the previous commit

This commit is contained in:
Space Toad 2011-12-08 07:51:17 +00:00
parent db1f438c2d
commit 17c9f9bf9b

View file

@ -8,7 +8,7 @@
import java.util.ArrayList;
import java.util.Random;
@@ -384,26 +385,43 @@
@@ -384,26 +385,50 @@
return 1;
}
@ -18,6 +18,13 @@
+ {
+ return func_40162_a(fortune, random);
+ }
+
+ /* FORGE: Metadata-sensitive version.
+ */
+ public int quantityDropped(int meta, Random random)
+ {
+ return quantityDropped(meta, 0, random);
+ }
+
public int idDropped(int i, Random random, int j)
{
@ -65,7 +72,7 @@
public final void dropBlockAsItem(World world, int i, int j, int k, int l, int i1)
{
dropBlockAsItemWithChance(world, i, j, k, l, 1.0F, i1);
@@ -415,18 +433,14 @@
@@ -415,18 +440,14 @@
{
return;
}
@ -87,7 +94,7 @@
}
}
@@ -725,6 +739,99 @@
@@ -725,6 +746,99 @@
return blockMaterial.getMaterialMobility();
}