Typo resursive
This commit is contained in:
parent
e43a9b697d
commit
dc1f6ae6a6
1 changed files with 4 additions and 4 deletions
|
@ -15,14 +15,14 @@ public class ItemEncodedPatternRenderer implements IItemRenderer
|
||||||
{
|
{
|
||||||
|
|
||||||
RenderItem ri = new RenderItem();
|
RenderItem ri = new RenderItem();
|
||||||
boolean resursive;
|
boolean recursive;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handleRenderType(ItemStack item, ItemRenderType type)
|
public boolean handleRenderType(ItemStack item, ItemRenderType type)
|
||||||
{
|
{
|
||||||
boolean isShiftHeld = Keyboard.isKeyDown( Keyboard.KEY_LSHIFT ) || Keyboard.isKeyDown( Keyboard.KEY_RSHIFT );
|
boolean isShiftHeld = Keyboard.isKeyDown( Keyboard.KEY_LSHIFT ) || Keyboard.isKeyDown( Keyboard.KEY_RSHIFT );
|
||||||
|
|
||||||
if ( resursive == false && type == IItemRenderer.ItemRenderType.INVENTORY && isShiftHeld )
|
if ( recursive == false && type == IItemRenderer.ItemRenderType.INVENTORY && isShiftHeld )
|
||||||
{
|
{
|
||||||
ItemEncodedPattern iep = (ItemEncodedPattern) item.getItem();
|
ItemEncodedPattern iep = (ItemEncodedPattern) item.getItem();
|
||||||
if ( iep.getOutput( item ) != null )
|
if ( iep.getOutput( item ) != null )
|
||||||
|
@ -41,7 +41,7 @@ public class ItemEncodedPatternRenderer implements IItemRenderer
|
||||||
@Override
|
@Override
|
||||||
public void renderItem(ItemRenderType type, ItemStack item, Object... data)
|
public void renderItem(ItemRenderType type, ItemStack item, Object... data)
|
||||||
{
|
{
|
||||||
resursive = true;
|
recursive = true;
|
||||||
|
|
||||||
ItemEncodedPattern iep = (ItemEncodedPattern) item.getItem();
|
ItemEncodedPattern iep = (ItemEncodedPattern) item.getItem();
|
||||||
|
|
||||||
|
@ -54,6 +54,6 @@ public class ItemEncodedPatternRenderer implements IItemRenderer
|
||||||
RenderHelper.disableStandardItemLighting();
|
RenderHelper.disableStandardItemLighting();
|
||||||
GL11.glPopAttrib();
|
GL11.glPopAttrib();
|
||||||
|
|
||||||
resursive = false;
|
recursive = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue