Fix call to createTileEntity on blocks that extend BlockContainer.

This commit is contained in:
LexManos 2012-08-24 14:06:02 -07:00
parent 0ae277b13e
commit 8fc05c399a

View file

@ -5,7 +5,7 @@
{
super.onBlockAdded(par1World, par2, par3, par4);
- par1World.setBlockTileEntity(par2, par3, par4, this.createNewTileEntity(par1World));
+ par1World.setBlockTileEntity(par2, par3, par4, this.createNewTileEntity(par1World, par1World.getBlockMetadata(par2, par3, par4)));
+ par1World.setBlockTileEntity(par2, par3, par4, this.createTileEntity(par1World, par1World.getBlockMetadata(par2, par3, par4)));
}
/**