mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
parent
7dc7d0f98a
commit
cba12aabe0
2 changed files with 12 additions and 10 deletions
|
@ -91,7 +91,7 @@ public final class SmileyCloudEasterEggs{
|
||||||
@Override
|
@Override
|
||||||
public void renderExtra(float f){
|
public void renderExtra(float f){
|
||||||
renderHoldingItem(true, new ItemStack(Items.MILK_BUCKET));
|
renderHoldingItem(true, new ItemStack(Items.MILK_BUCKET));
|
||||||
renderHeadBlock(Blocks.LIT_REDSTONE_LAMP, 0, 35F);
|
renderHeadBlock(Blocks.REDSTONE_LAMP, 0, 35F);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Vazkii
|
//Vazkii
|
||||||
|
|
|
@ -62,15 +62,17 @@ public final class AssetUtil{
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public static void renderItemInWorld(ItemStack stack){
|
public static void renderItemInWorld(ItemStack stack){
|
||||||
GlStateManager.pushMatrix();
|
if(stack != null && stack.getItem() != null){
|
||||||
GlStateManager.disableLighting();
|
GlStateManager.pushMatrix();
|
||||||
GlStateManager.pushAttrib();
|
GlStateManager.disableLighting();
|
||||||
RenderHelper.enableStandardItemLighting();
|
GlStateManager.pushAttrib();
|
||||||
Minecraft.getMinecraft().getRenderItem().renderItem(stack, TransformType.FIXED);
|
RenderHelper.enableStandardItemLighting();
|
||||||
RenderHelper.disableStandardItemLighting();
|
Minecraft.getMinecraft().getRenderItem().renderItem(stack, TransformType.FIXED);
|
||||||
GlStateManager.popAttrib();
|
RenderHelper.disableStandardItemLighting();
|
||||||
GlStateManager.enableLighting();
|
GlStateManager.popAttrib();
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.enableLighting();
|
||||||
|
GlStateManager.popMatrix();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
|
|
Loading…
Reference in a new issue