Fixed subblock adding.
This commit is contained in:
parent
c82220d562
commit
9643f4d52d
2 changed files with 5 additions and 4 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue