Fixed subblock adding.

This commit is contained in:
SirSengir 2012-09-05 21:23:34 +02:00
parent c82220d562
commit 9643f4d52d
2 changed files with 5 additions and 4 deletions

View file

@ -27,6 +27,7 @@ import buildcraft.core.render.RenderingOil;
import buildcraft.transport.render.TileEntityPickupFX;
import net.minecraft.client.Minecraft;
import net.minecraft.src.Block;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.Entity;
import net.minecraft.src.EntityItem;
@ -62,7 +63,10 @@ public class ClientProxyCore extends ProxyCore {
/* WRAPPER */
public void feedSubBlocks(int id, CreativeTabs tab, List itemList) {
if(Block.blocksList[id] == null)
return;
Block.blocksList[id].getSubBlocks(id, tab, itemList);
}
/* LOCALIZATION */

View file

@ -121,12 +121,9 @@ public class ItemFacade extends ItemBuildCraft {
List itemList = new ArrayList();
for (Block block : Block.blocksList)
{
if (block != null)
{
ProxyCore.proxy.feedSubBlocks(block.blockID, null, itemList);
}
}
return itemList;
}