Updated mimics so that they store and display the meta for the block they want to mimic (using reflection).

This commit is contained in:
WayofTime 2016-08-23 15:13:03 -04:00
parent 117e692969
commit ebd7b1f8da
3 changed files with 31 additions and 4 deletions

View file

@ -119,7 +119,7 @@ public class BlockMimic extends BlockStringContainer implements IVariantProvider
if (stack != null && stack.getItem() instanceof ItemBlock)
{
Block block = ((ItemBlock) stack.getItem()).getBlock();
IBlockState mimicState = block.getStateFromMeta(stack.getItemDamage());
IBlockState mimicState = block.getStateFromMeta(mimic.metaOfReplacedBlock);
if (block != this)
{
if (block.getRenderType(mimicState) == EnumBlockRenderType.ENTITYBLOCK_ANIMATED)