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

@ -70,7 +70,10 @@ public class ItemBlockMimic extends ItemBlock
if (tile instanceof TileMimic)
{
TileMimic mimic = (TileMimic) tile;
mimic.metaOfReplacedBlock = block.getMetaFromState(iblockstate);
mimic.setInventorySlotContents(0, replacedStack);
mimic.refreshTileEntity();
if (player.capabilities.isCreativeMode)
{
mimic.dropItemsOnBreak = false;