Fix facade recipes. Hopefully the last null check fix.
This commit is contained in:
@@ -99,7 +99,7 @@ public class TesrRenderHelper
|
||||
*/
|
||||
public static void renderItem2d( ItemStack itemStack, float scale )
|
||||
{
|
||||
if( itemStack != null )
|
||||
if( !itemStack.isEmpty() )
|
||||
{
|
||||
OpenGlHelper.setLightmapTextureCoords( OpenGlHelper.lightmapTexUnit, 240.f, 240.0f );
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package appeng.client.render.tesr;
|
||||
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
@@ -200,7 +202,7 @@ public class InscriberTESR extends TileEntitySpecialRenderer<TileInscriber>
|
||||
|
||||
// heuristic to scale items down much further than blocks
|
||||
final Block blk = Block.getBlockFromItem( sis.getItem() );
|
||||
if( blk == null )
|
||||
if( blk == Blocks.AIR )
|
||||
{
|
||||
GlStateManager.scale( 0.5, 0.5, 0.5 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user