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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue