Updated mimics so that they store and display the meta for the block they want to mimic (using reflection).
This commit is contained in:
parent
117e692969
commit
ebd7b1f8da
3 changed files with 31 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue