mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
more fixes
This commit is contained in:
1 parent
eba66e0182
commit
fb04e8eb08
55 files changed
+1446
-1442
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package tconstruct.client;
|
||||
|
||||
import mantle.blocks.BlockUtils;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
@@ -48,9 +49,9 @@ public class CustomBowRenderer implements IItemRenderer
|
||||
GL11.glPushMatrix();
|
||||
|
||||
Block block = null;
|
||||
if (stack.getItem() instanceof ItemBlock && stack.itemID < Block.blocksList.length)
|
||||
if (stack.getItem() instanceof ItemBlock)
|
||||
{
|
||||
block = Block.blocksList[stack.itemID];
|
||||
block = BlockUtils.getBlockFromItem(stack.getItem());
|
||||
}
|
||||
|
||||
IIcon icon = null; //living.getItemIcon(stack, renderPass);
|
||||
|
||||
Reference in new issue
Block a user