From db1f438c2d443226bca8f9bc7ef908da7ab35b3c Mon Sep 17 00:00:00 2001 From: Space Toad Date: Wed, 7 Dec 2011 21:30:48 +0000 Subject: [PATCH] fixed backwards compatibility --- .../minecraft/net/minecraft/src/Block.java.patch | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/forge/patches/minecraft/net/minecraft/src/Block.java.patch b/forge/patches/minecraft/net/minecraft/src/Block.java.patch index 0e126e746..25ca61edd 100644 --- a/forge/patches/minecraft/net/minecraft/src/Block.java.patch +++ b/forge/patches/minecraft/net/minecraft/src/Block.java.patch @@ -25,7 +25,7 @@ } public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l) -@@ -438,25 +441,42 @@ +@@ -438,25 +441,49 @@ { return 1; } @@ -37,6 +37,13 @@ + { + return func_40198_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) { @@ -80,7 +87,7 @@ } public final void dropBlockAsItem(World world, int i, int j, int k, int l, int i1) -@@ -470,18 +490,13 @@ +@@ -470,18 +497,13 @@ { return; } @@ -102,7 +109,7 @@ } } -@@ -805,6 +820,107 @@ +@@ -805,6 +827,107 @@ return iblockaccess.isBlockNormalCube(i, j, k) ? 0.2F : 1.0F; }