Fixes #2465: Disable use of blocks that have extended block state for facades since we have no way of actually providing the extended block state.

This commit is contained in:
Sebastian Hartte 2016-10-15 14:32:25 +02:00
parent b679079a5a
commit efaf308a94
1 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.common.property.IExtendedBlockState;
import net.minecraftforge.fml.common.registry.GameRegistry;
import appeng.api.AEApi;
@ -135,7 +136,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
private static boolean hasSimpleModel( IBlockState blockState )
{
if( blockState.getRenderType() != EnumBlockRenderType.MODEL )
if( blockState.getRenderType() != EnumBlockRenderType.MODEL || blockState instanceof IExtendedBlockState )
{
return false;
}